Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jonybur committed Oct 30, 2024
1 parent 766587f commit 5107e66
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ui/components/app/wallet-overview/coin-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,15 @@ export const CoinOverview = ({
///: END:ONLY_INCLUDE_IF

const renderPercentageAndAmountChange = () => {
const ContentComponent =
isEvm && showNativeTokenAsMainBalance ? (
<PercentageAndAmountChange
value={tokensMarketData?.[zeroAddress()]?.pricePercentChange1d}
/>
) : (
<AggregatedPercentageOverview />
);

return (
<Box className="wallet-overview__currency-wrapper">
{ContentComponent}
{isEvm && showNativeTokenAsMainBalance ? (
<PercentageAndAmountChange
value={tokensMarketData?.[zeroAddress()]?.pricePercentChange1d}
/>
) : (
<AggregatedPercentageOverview />
)}
{
///: BEGIN:ONLY_INCLUDE_IF(build-main,build-beta,build-flask)
<ButtonLink
Expand Down

0 comments on commit 5107e66

Please sign in to comment.