Skip to content

Commit

Permalink
fix: currency icon (deriv-com#10396)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv authored Sep 29, 2023
1 parent 5b461be commit 34393a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const DesktopWalletsList: React.FC = () => {
<WalletListCard
badge={wallet.landing_company_name}
balance={wallet.display_balance}
currency={wallet.currency_config?.display_code || 'USD'}
currency={wallet.wallet_currency_type || 'USD'}
isActive={wallet.is_active}
isDemo={wallet.is_virtual}
loginid={wallet.loginid}
Expand Down
6 changes: 2 additions & 4 deletions packages/wallets/src/components/WalletCard/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const WalletCard: React.FC<TProps> = ({ account }) => {
return (
<div className='wallets-card'>
<WalletGradientBackground
currency={account?.currency_config?.display_code || 'USD'}
currency={account?.wallet_currency_type || 'USD'}
device='mobile'
hasShine
isDemo={account?.is_virtual}
Expand All @@ -33,9 +33,7 @@ const WalletCard: React.FC<TProps> = ({ account }) => {
</div>
<div className={`wallets-card__details__bottom${account?.is_virtual ? '--virtual' : ''}`}>
<p className='wallets-card__details__bottom__currency'>{account?.currency} Wallet</p>
<p className='wallets-card__details__bottom__balance'>
{account?.display_balance} {account?.currency}
</p>
<p className='wallets-card__details__bottom__balance'>{account?.display_balance}</p>
</div>
</div>
</WalletGradientBackground>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const typeToIconMapper = {
eUSDT: Tether,
GBP,
LTC,
tUSDT: Tether,
USD,
USDC,
UST: Tether,
Expand Down

0 comments on commit 34393a4

Please sign in to comment.