fix: governance 404 page
This commit is contained in:
parent
acf0f2e818
commit
d7eed4262e
8 changed files with 114 additions and 47 deletions
|
@ -60,7 +60,7 @@ export default {
|
|||
balance: (state) => fromWei(state.balance)
|
||||
}),
|
||||
...mapState('governance/gov', ['lockedBalance', 'delegatedBalance']),
|
||||
...mapGetters('governance/gov', ['isFetchingBalances']),
|
||||
...mapGetters('governance/gov', ['isFetchingBalances', 'isEnabledGovernance']),
|
||||
...mapGetters('governance/staking', ['reward', 'isCheckingReward']),
|
||||
...mapGetters('token', ['toDecimals']),
|
||||
...mapState('metamask', ['isInitialized']),
|
||||
|
@ -74,7 +74,7 @@ export default {
|
|||
watch: {
|
||||
isInitialized: {
|
||||
handler(isInitialized) {
|
||||
if (isInitialized) {
|
||||
if (isInitialized && this.isEnabledGovernance) {
|
||||
this.checkReward()
|
||||
this.fetchTokenBalance()
|
||||
this.fetchTokenAllowance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue