From ecf9124de596df86f1e46d964aaa77cbebea13c9 Mon Sep 17 00:00:00 2001 From: Matthew Grainger Date: Fri, 10 Jul 2026 15:08:53 -0400 Subject: [PATCH 1/2] fix: display asset name instead of symbol on Earn on your crypto Money surfaces --- .../MoneyPotentialEarningsView.test.tsx | 12 ++++++------ .../MoneyPotentialEarnings.test.tsx | 2 +- .../PotentialEarningsTokenRow.test.tsx | 6 +++--- .../PotentialEarningsTokenRow.tsx | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx b/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx index 33acbde147e..2f1a7b6183f 100644 --- a/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx +++ b/app/components/UI/Money/Views/MoneyPotentialEarningsView/MoneyPotentialEarningsView.test.tsx @@ -307,12 +307,12 @@ describe('MoneyPotentialEarningsView', () => { it('renders ALL eligible tokens, not limited to 5', () => { const { getByText } = renderWithProvider(); - expect(getByText('USDC')).toBeOnTheScreen(); - expect(getByText('USDT')).toBeOnTheScreen(); - expect(getByText('DAI')).toBeOnTheScreen(); - expect(getByText('WETH')).toBeOnTheScreen(); - expect(getByText('LINK')).toBeOnTheScreen(); - expect(getByText('UNI')).toBeOnTheScreen(); + expect(getByText('USD Coin')).toBeOnTheScreen(); + expect(getByText('Tether')).toBeOnTheScreen(); + expect(getByText('Dai')).toBeOnTheScreen(); + expect(getByText('Wrapped Ether')).toBeOnTheScreen(); + expect(getByText('ChainLink')).toBeOnTheScreen(); + expect(getByText('Uniswap')).toBeOnTheScreen(); }); it('renders the view without errors', () => { diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx index 3aa69235918..71cebb8ef67 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/MoneyPotentialEarnings.test.tsx @@ -520,7 +520,7 @@ describe('MoneyPotentialEarnings', () => { expect( getAllByText(strings('money.potential_earnings.no_fee')), ).toHaveLength(1); - expect(queryByText('USDT')).toBeOnTheScreen(); + expect(queryByText('Tether')).toBeOnTheScreen(); }); }); }); diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx index e98342606fa..053fdb9fffa 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx @@ -60,7 +60,7 @@ describe('PotentialEarningsTokenRow', () => { mockMoneyFormatFiat.mockClear(); }); - it('renders the token symbol', () => { + it('renders the token name', () => { const { getByText } = render( { />, ); - expect(getByText('USDC')).toBeOnTheScreen(); + expect(getByText('USD Coin')).toBeOnTheScreen(); }); it('renders the token fiat balance', () => { @@ -193,7 +193,7 @@ describe('PotentialEarningsTokenRow', () => { />, ); - fireEvent.press(getByText('USDC')); + fireEvent.press(getByText('USD Coin')); expect(mockOnPress).toHaveBeenCalledTimes(1); }); diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx index 85893826227..90f01908e94 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.tsx @@ -121,7 +121,7 @@ const PotentialEarningsTokenRow = ({ twClassName="gap-1" > - {token.symbol} + {token.name} {hasSubsidizedFee && ( From 24eb3ee88498dfeeda5679564bfc948e6934dd6d Mon Sep 17 00:00:00 2001 From: Matthew Grainger Date: Fri, 10 Jul 2026 15:41:29 -0400 Subject: [PATCH 2/2] fix: fall back to token symbol when name is empty in Money earn on your crypto surfaces --- .../PotentialEarningsTokenRow.test.tsx | 15 +++++++++++++++ .../PotentialEarningsTokenRow.tsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx index 053fdb9fffa..fd4b7bcf4d6 100644 --- a/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx +++ b/app/components/UI/Money/components/MoneyPotentialEarnings/PotentialEarningsTokenRow.test.tsx @@ -74,6 +74,21 @@ describe('PotentialEarningsTokenRow', () => { expect(getByText('USD Coin')).toBeOnTheScreen(); }); + it('falls back to the token symbol when name is empty', () => { + const noNameToken = makeToken({ name: '', symbol: 'USDC' }); + const { getByText } = render( + , + ); + + expect(getByText('USDC')).toBeOnTheScreen(); + }); + it('renders the token fiat balance', () => { const { getByText } = render( - {token.name} + {token.name || token.symbol} {hasSubsidizedFee && (