Skip to content

Commit

Permalink
fix: currency param
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Mar 3, 2025
1 parent 4928bb2 commit 4782c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/callback/callback-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 4782c81

Please sign in to comment.