Skip to content

Commit

Permalink
fix(suite): hide fiat value for testnets in acc header
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Oct 18, 2024
1 parent c63f36b commit 38a352a
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { useAccountLabel } from 'src/components/suite/AccountLabel';
import { useSelector } from 'src/hooks/suite';
import { selectLabelingDataForSelectedAccount } from 'src/reducers/suite/metadataReducer';
import { CoinLogo } from '@trezor/product-components';
import { isTestnet } from '@suite-common/wallet-utils';

const rotateIn = keyframes`
from {
Expand Down Expand Up @@ -141,10 +142,12 @@ export const AccountDetails = ({ selectedAccount, isBalanceShown }: AccountDetai
<FormattedCryptoAmount value={formattedBalance} symbol={symbol} />
</AmountUnitSwitchWrapper>
</CryptoBalance>
<ForegroundWrapper>
≈&nbsp;
<FiatValue amount={formattedBalance} symbol={symbol} />
</ForegroundWrapper>
{!isTestnet(symbol) && (
<ForegroundWrapper>
≈&nbsp;
<FiatValue amount={formattedBalance} symbol={symbol} />
</ForegroundWrapper>
)}
</AccountBalance>
)}
</DetailsContainer>
Expand Down

0 comments on commit 38a352a

Please sign in to comment.