From 87de22a38719ce0ea61e43d6a5c1608d1f3e7b70 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 18 Apr 2023 09:35:37 -0230 Subject: [PATCH] Only display ledger info on approval screen for ledger hardware wallets --- ui/pages/token-allowance/token-allowance.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/pages/token-allowance/token-allowance.test.js b/ui/pages/token-allowance/token-allowance.test.js index 6e48d83bcad3..d05c21f200ed 100644 --- a/ui/pages/token-allowance/token-allowance.test.js +++ b/ui/pages/token-allowance/token-allowance.test.js @@ -256,7 +256,7 @@ describe('TokenAllowancePage', () => { expect(gotIt).not.toBeInTheDocument(); }); - it('should show hardware wallet info text', () => { + it('should show ledger info text if the sending address is ledger', () => { const { queryByText, getByText, getByTestId } = renderWithProvider( , store, @@ -273,7 +273,7 @@ describe('TokenAllowancePage', () => { expect(queryByText('Prior to clicking confirm:')).toBeInTheDocument(); }); - it('should not show hardware wallet info text', () => { + it('should not show ledger info text if the sending address is not ledger', () => { const { queryByText, getByText, getByTestId } = renderWithProvider( , store,