1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui
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
..
__mocks__ Refactoring isManifestV3 variable (#15568) 2022-08-16 20:51:42 +05:30
components Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
contexts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
css Deprecation message has been added above @mixin H1 (#20500) 2023-08-18 09:54:12 -07:00
ducks Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
helpers feat(878): implement network txn toggle and new style (#20363) 2023-08-24 11:27:42 +01:00
hooks Use primary transaction to get token value in useTransactionDisplayData (#20536) 2023-08-21 15:45:25 +05:30
pages Updating watch NFT page header (#20569) 2023-08-25 18:27:17 +05:30
selectors Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
store Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
index.js Fix and test log.info calls run for each migration (#20517) 2023-08-18 11:15:45 -02:30
index.test.js Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00