1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/ui/store
Mark Stacey 3044aa0ebe
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-26 00:28:24 -02:30
..
action-queue Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
institutional feat(878): implement network txn toggle and new style (#20363) 2023-08-24 11:27:42 +01:00
actionConstants.test.js Dead and redundant code removal (#17512) 2023-02-02 16:00:05 -06:00
actionConstants.ts Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
actions.test.js Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
actions.ts fix(privateKey): Restore hold-to-reveal button for private key export (#20109) 2023-08-24 17:35:26 -04:00
store.ts adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00