Skip to content

Commit 01c0d41

Browse files
thisyahlen-derivThisyahlen
andauthored
Thisyahlen/fix: account switching (deriv-com#17831)
* fix: account switching * chore: empty commit --------- Co-authored-by: Thisyahlen <[email protected]>
1 parent 480b55c commit 01c0d41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/Stores/client-store.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,12 @@ export default class ClientStore extends BaseStore {
16771677
await this.fetchStatesList();
16781678
}
16791679
if (!this.is_virtual) await this.getLimits();
1680+
1681+
// This was set for the new callback page logic, once the user has logged in, we can remove the tokens and account1 from local storage since client.accounts is handling it already
1682+
if (localStorage.getItem('config.tokens') && localStorage.getItem('config.account1')) {
1683+
localStorage.removeItem('config.tokens');
1684+
localStorage.removeItem('config.account1');
1685+
}
16801686
} else {
16811687
this.resetMt5AccountListPopulation();
16821688
}

0 commit comments

Comments
 (0)