1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00
metamask-extension/ui
Mark Stacey b684c094cb Fix account selectors when balances are missing (#20385)
* Fix account selectors when balances are missing

Some of the account selectors we use would return an empty set of
accounts if the `AccountTracker` state was missing. This resulted in UI
crashes when trying to access the current selected account.

The selectors have been updated to use the `identities` as the source-
of-truth for the full set of accounts. This ensures that even if the
balances are missing, each account will at least be represented by an
empty object.

* Fix unit test

* Fix another unit test

* Fix another unit test

* Fix another unit test

* Fix more unit tests

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-30 16:21:06 -02:30
..
__mocks__ Refactoring isManifestV3 variable (#15568) 2022-08-16 20:51:42 +05:30
components Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
contexts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
css Fix #18423 - Ensure token details stay within dropdown (#19626) 2023-06-21 16:28:53 -05:00
ducks Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
helpers Merge remote-tracking branch 'origin/master' into Version-v10.35.0 2023-08-14 14:31:37 -02:30
hooks Use primary transaction to get token value in useTransactionDisplayData (#20536) 2023-08-21 11:26:09 -02:30
pages Fixing Dapp link on NFT import screen (#19799) 2023-08-27 16:25:39 -02:30
selectors Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
store Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
index.js Fix and test log.info calls run for each migration (#20517) 2023-08-18 11:16:42 -02:30
index.test.js Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00