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

Commit 44c1de6

Browse files
authored
Merge pull request #1591 from mahdiyeh-fs/fix_currency_on_login
Mahdiyeh/Fix: currency on login
2 parents 7173d83 + 967f1ce commit 44c1de6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/navigation/navigation.es6

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ const initLoginButton = (root) => {
159159

160160
state.currency = data.authorize.currency;
161161
local_storage.set('currency', state.currency);
162-
update_balance(data);
162+
if (local_storage.get('authorize')) {
163+
const loginId = local_storage.get('authorize').loginid;
164+
if (data.authorize && data.authorize.loginid === loginId) update_balance(data);
165+
}
166+
163167
const is_current_account_real = data.authorize.is_virtual === 0;
164168

165169
getLandingCompany().then((what_todo) => {

0 commit comments

Comments
 (0)