Skip to content

Commit

Permalink
merge call inside mounted for wallet screen
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleySuira committed Dec 12, 2022
1 parent 59ec6f0 commit 55d6a71
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/views/Wallet/Wallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@ export default {
},
async mounted() {
try {
await this.updateBalances({
network: this.activeNetwork,
walletId: this.activeWalletId,
loadingInitialBalance: true
})
await Promise.all([
this.updateBalances({
network: this.activeNetwork,
walletId: this.activeWalletId,
loadingInitialBalance: true
}),
this.getNFTs()
])
} catch (error) {
// TODO: manage error
reportLiqualityError(error)
}
await this.getNFTs()
},
computed: {
...mapState(['activeNetwork', 'activeWalletId', 'history']),
Expand Down

0 comments on commit 55d6a71

Please sign in to comment.