Skip to content

Commit

Permalink
Merge pull request #262 from rupato-deriv/testtest/Rupato3
Browse files Browse the repository at this point in the history
fix: silent login
  • Loading branch information
rupato-deriv authored Feb 17, 2025
2 parents 125943a + 5f05d1d commit 9b3839a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ function App() {
const cookie_accounts = Cookies.get('client.accounts') || '{}';
const stored_accounts = JSON.parse(localStorage.getItem('clientAccounts') || '{}');

Object.values(JSON.parse(cookie_accounts)).forEach(data => {
const json_acc_list = Object.values(JSON.parse(cookie_accounts)).forEach(data => {
const account_data = data as { loginid: string; token: string };
const loginid = account_data.loginid;
accounts_list[loginid] = account_data.token;
localStorage.setItem('accountsList', accounts_list);
});
localStorage.setItem('accountsList', JSON.stringify(json_acc_list));

const client_accounts = {
...stored_accounts,
Expand Down

0 comments on commit 9b3839a

Please sign in to comment.