From 4782c813c832f6a5f8bca1f3d3fcc36d2a5171ca Mon Sep 17 00:00:00 2001 From: Rupato Braganza Date: Mon, 3 Mar 2025 16:12:49 +0800 Subject: [PATCH] fix: currency param --- src/pages/callback/callback-page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/callback/callback-page.tsx b/src/pages/callback/callback-page.tsx index 7f6a7a99..ec657e62 100644 --- a/src/pages/callback/callback-page.tsx +++ b/src/pages/callback/callback-page.tsx @@ -58,8 +58,8 @@ const CallbackPage = () => { .map(key => tokens[key]); const is_valid_currency = currencies.includes(state?.account || currency || ''); - const firstAccountKey = Object.keys(clientAccounts)[0]; - const firstAccountCurrency = clientAccounts[tokens.acct1] + const firstAccountKey = tokens.acct1; + const firstAccountCurrency = clientAccounts[firstAccountKey] ? clientAccounts[firstAccountKey].currency : null; const selected_currency =