Skip to content

Commit

Permalink
fix: silent login
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Feb 17, 2025
1 parent df90133 commit 529fc6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ function App() {
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);
});

if (accounts_list) {
localStorage.setItem('accountsList', JSON.stringify(accounts_list));
}
const client_accounts = {
...stored_accounts,
...JSON.parse(cookie_accounts),
Expand Down

0 comments on commit 529fc6b

Please sign in to comment.