Skip to content

Commit 4782c81

Browse files
committed
fix: currency param
1 parent 4928bb2 commit 4782c81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/callback/callback-page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const CallbackPage = () => {
5858
.map(key => tokens[key]);
5959
const is_valid_currency = currencies.includes(state?.account || currency || '');
6060

61-
const firstAccountKey = Object.keys(clientAccounts)[0];
62-
const firstAccountCurrency = clientAccounts[tokens.acct1]
61+
const firstAccountKey = tokens.acct1;
62+
const firstAccountCurrency = clientAccounts[firstAccountKey]
6363
? clientAccounts[firstAccountKey].currency
6464
: null;
6565
const selected_currency =

0 commit comments

Comments
 (0)