Skip to content

Commit

Permalink
Merge pull request #172 from farabi-deriv/farabi/bot-2475/wallet-acco…
Browse files Browse the repository at this point in the history
…unt-switcher-bugs

Farabi/bot-2475/wallet-account-switcher-bugs
  • Loading branch information
shafin-deriv authored Dec 4, 2024
2 parents 2d19081 + 88496c7 commit 638b37c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const AccountInfoWallets = observer(({ is_dialog_on, toggleDialog }: TAccountInf
const { data: wallet_list } = useStoreWalletAccountsList();
const { isDesktop } = useDevice();

const balance = all_accounts_balance?.balance;
const balance = all_accounts_balance?.accounts?.[loginid ?? '']?.balance;
const active_account = accounts?.[loginid ?? ''];
const linked_dtrade_trading_account_loginid = loginid;

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useStoreWalletAccountsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const useStoreWalletAccountsList = () => {
is_dtrader_account_disabled,
} as const;
});
}, [accounts]);
}, [accounts, all_accounts_balance?.accounts]);

// Sort wallet accounts alphabetically by fiat, crypto, then virtual.
const sorted_wallets = useMemo(() => {
Expand Down

0 comments on commit 638b37c

Please sign in to comment.