File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default {
53
53
title: " Basilisk" ,
54
54
link: " https://app.basilisk.cloud/pools-and-farms" ,
55
55
type: " external"
56
- },
56
+ }
57
57
]
58
58
},
59
59
@@ -76,7 +76,7 @@ export default {
76
76
type: " external"
77
77
}
78
78
]
79
- },
79
+ }
80
80
],
81
81
version: " "
82
82
};
@@ -108,6 +108,16 @@ export default {
108
108
},
109
109
immediate: true
110
110
},
111
+ " RobonomicsProvider.isReady.value" : {
112
+ handler : function (newValue , oldValue ) {
113
+ if (newValue && ! oldValue) {
114
+ this .handlerAccount (
115
+ this .$store .state .robonomicsUIvue .polkadot .address
116
+ );
117
+ }
118
+ },
119
+ immediate: true
120
+ },
111
121
$route : async function () {
112
122
this .renderComponent = false ;
113
123
await this .$nextTick ();
@@ -149,7 +159,7 @@ export default {
149
159
this .unsubscribeBalance = await this .robonomics .account .getBalance (
150
160
address,
151
161
(r ) => {
152
- const transferable = r .free .sub (r .feeFrozen );
162
+ const transferable = r .free .sub (r .frozen );
153
163
this .$store .commit (
154
164
" polkadot/setBalanceXRT" ,
155
165
round (
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const useBalance = (account) => {
14
14
}
15
15
const robonomics = getInstance ( ) ;
16
16
unsubscribe = await robonomics . account . getBalance ( account . value , ( r ) => {
17
- balance . value = r . free . sub ( r . feeFrozen ) . toNumber ( ) ;
17
+ balance . value = r . free . sub ( r . frozen ) . toNumber ( ) ;
18
18
} ) ;
19
19
} ) ;
20
20
return { balance, unsubscribe } ;
You can’t perform that action at this time.
0 commit comments