Skip to content

Commit

Permalink
Only display ledger info on approval screen for ledger hardware wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Apr 18, 2023
1 parent 613599d commit 87de22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/pages/token-allowance/token-allowance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<TokenAllowance {...props} fromAddressIsLedger />,
store,
Expand All @@ -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(
<TokenAllowance {...props} fromAddressIsLedger={false} />,
store,
Expand Down

0 comments on commit 87de22a

Please sign in to comment.