Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix breaking jest test for asset-list (#21324)
Fixes the current jest error on `develop` branch: ``` TypeError: Cannot read properties of undefined (reading 'nickname') 43 | showEthLogo, 44 | nativeCurrency, > 45 | currentNetwork.nickname, | ^ 46 | currentNetwork?.rpcPrefs?.imageUrl, 47 | ]); 48 | return ( at nickname (ui/components/app/user-preferenced-currency-display/user-preferenced-currency-display.component.js:45:20) at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:16260:18) at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:18794:13) at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:20162:16) ``` ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've clearly explained: - [ ] What problem this PR is solving. - [ ] How this problem was solved. - [ ] How reviewers can test my changes. - [ ] I’ve indicated what issue this PR is linked to: Fixes #??? - [ ] I’ve included tests if applicable. - [ ] I’ve documented any added code. - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
- Loading branch information