From bf75d5036c7033940ff04d50a979038aadfd37e2 Mon Sep 17 00:00:00 2001 From: Rupato Braganza Date: Mon, 17 Feb 2025 15:59:10 +0800 Subject: [PATCH] fix: added cookies to fix silent login --- src/app/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index a5c5cda5..05941e6f 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -85,6 +85,10 @@ 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)); + } + console.log('updated client accounts', JSON.parse(localStorage.getItem('clientAccounts') || '{}')); const url_params = new URLSearchParams(window.location.search); const account_currency = url_params.get('account');