Skip to content

Commit

Permalink
fix: currency preferences toggle not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Nov 23, 2023
1 parent 50ed687 commit 5cc1a21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pages/settings/settings-tab/settings-tab.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mapStateToProps = (state, ownProps) => {
} = state;
const {
currentCurrency,
nativeCurrency,
providerConfig: { ticker: nativeCurrency },
useBlockie,
currentLocale,
selectedAddress,
Expand Down
8 changes: 8 additions & 0 deletions ui/pages/settings/settings-tab/settings-tab.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ describe('Settings Tab', () => {
).toHaveBeenCalled();
});

it('should display currency symbol for native token', async () => {
const { getByText } = renderWithProvider(<SettingsTab />, mockStore);

const textElement = getByText('ETH');

expect(textElement).toBeInTheDocument();
});

it('clicks jazzicon', () => {
const { queryByTestId } = renderWithProvider(<SettingsTab />, mockStore);

Expand Down

0 comments on commit 5cc1a21

Please sign in to comment.