-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
@@ -1560,6 +1561,7 @@ estimation, | |||
console.error(err) | |||
} finally { | |||
this.isOpenQuitAlertDialog = false | |||
this.fetchWalletBalance() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}finally{ | |
} finally { |
get getBalance() { | ||
return Math.floor(this.balance) | ||
} |
There was a problem hiding this comment.
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
No description provided.