Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 082e1b1

Browse files
fix misleadig account balance
1 parent e7a2824 commit 082e1b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/navigation/navigation.es6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ const initLoginButton = (root) => {
114114

115115
let value = '0';
116116
if (data.authorize) value = data.authorize.balance;
117-
else value = data.balance ? data.balance.balance : '0';
117+
else if (data.balance) value = data.balance.balance ;
118+
else return;
118119

119120
state.account.balance = formatPrice(value, state.currency);
120121
};

0 commit comments

Comments
 (0)