Skip to content

Commit

Permalink
Merge pull request #260 from rupato-deriv/Rupato/Fix--accountList
Browse files Browse the repository at this point in the history
Rupato/fix  account list
  • Loading branch information
rupato-deriv authored Feb 17, 2025
2 parents c6aa163 + df90133 commit 81d7f4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ function App() {
accounts_list[loginid] = account_data.token;
});

if (accounts_list) {
localStorage.setItem('accountsList', JSON.stringify(accounts_list));
}
const client_accounts = {
...stored_accounts,
...JSON.parse(cookie_accounts),
Expand All @@ -92,6 +95,7 @@ function App() {
active_loginid_cookie: Cookies.get('active_loginid') || '{}',
active_loginid_local_storage: localStorage.getItem('active_loginid'),
});

if (client_accounts) {
localStorage.setItem('clientAccounts', JSON.stringify(client_accounts));
}
Expand Down

0 comments on commit 81d7f4c

Please sign in to comment.