Skip to content

Commit 7a4fe52

Browse files
committed
Replace discover button
1 parent b2eba3d commit 7a4fe52

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ui/components/app/wallet-overview/coin-overview.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,20 +248,20 @@ export const CoinOverview = ({
248248
}, [isMarketingEnabled, isMetaMetricsEnabled, metaMetricsId, trackEvent]);
249249

250250
const renderPercentageAndAmountChange = () => {
251+
if (isRewardsEnabled) {
252+
return <RewardsPointsBalance />;
253+
}
251254
const renderPortfolioButton = () => {
252255
return (
253-
<>
254-
{isRewardsEnabled && <RewardsPointsBalance />}
255-
<ButtonLink
256-
endIconName={IconName.Export}
257-
onClick={handlePortfolioOnClick}
258-
as="a"
259-
data-testid="portfolio-link"
260-
textProps={{ variant: TextVariant.bodyMdMedium }}
261-
>
262-
{t('discover')}
263-
</ButtonLink>
264-
</>
256+
<ButtonLink
257+
endIconName={IconName.Export}
258+
onClick={handlePortfolioOnClick}
259+
as="a"
260+
data-testid="portfolio-link"
261+
textProps={{ variant: TextVariant.bodyMdMedium }}
262+
>
263+
{t('discover')}
264+
</ButtonLink>
265265
);
266266
};
267267

0 commit comments

Comments
 (0)