1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/store
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
..
action-queue
institutional [MMI] Review interactive replacement token flow (#19974) 2023-07-13 18:27:49 +02:00
actionConstants.test.js
actionConstants.ts Move "Import NFTs" to Modal (#19806) 2023-07-14 21:48:41 +05:30
actions.test.js Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
actions.ts Merge remote-tracking branch 'origin/master' into Version-v10.35.0 2023-08-18 21:13:57 -02:30
store.ts Accept SignController approval request from frontend (#19184) 2023-07-07 06:16:37 -02:30