Skip to content

Commit

Permalink
Merge pull request #284 from rupato-deriv/fix--currency
Browse files Browse the repository at this point in the history
fix: check currency
  • Loading branch information
rupato-deriv authored Feb 18, 2025
2 parents 5f5a61e + 1c8c383 commit feaa7f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const Layout = () => {
const isClientAccountsPopulated = Object.keys(clientAccounts).length > 0;

const ifClientAccountHasCurrency =
Object.values(checkClientAccount).some(account => account.currency === currency) || currency === 'demo';
Object.values(checkClientAccount).some(account => account.currency === currency) ||
currency === 'demo' ||
currency === '';

console.log('clientAccounts', {
currency,
Expand Down

0 comments on commit feaa7f7

Please sign in to comment.