Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 Store balance to walletStore #513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AuroraHuang22
Copy link
Collaborator

No description provided.

@@ -1560,6 +1561,7 @@ estimation,
console.error(err)
} finally {
this.isOpenQuitAlertDialog = false
this.fetchWalletBalance()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe replace getAccountBalance call with fetchWalletBalance and getBalance from store?

@@ -985,6 +987,7 @@ export default class IscnUploadForm extends Vue {
return
} finally {
this.uploadStatus = '';
this.fetchWalletBalance()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe replace getAccountBalance call with fetchWalletBalance and getBalance from store?

@@ -618,6 +619,8 @@ export default class NFTMintPage extends Vue {
console.error(error)
this.mintState = MintState.DONE
this.setError(error)
}finally{
this.fetchWalletBalance()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe replace getAccountBalance call with fetchWalletBalance and getBalance from store?

@@ -618,6 +619,8 @@ export default class NFTMintPage extends Vue {
console.error(error)
this.mintState = MintState.DONE
this.setError(error)
}finally{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}finally{
} finally {

Comment on lines +356 to +358
get getBalance() {
return Math.floor(this.balance)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe 2 getters, one with Math.floor one with raw value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants