1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/ui/ducks
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
..
alerts feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
app Move "Import NFTs" to Modal (#19806) 2023-07-14 21:48:41 +05:30
confirm-transaction Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
gas feat(mme-17214): migrate L33 files to typescript (#17372) 2023-01-31 12:01:10 +00:00
history remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
institutional [MMI] Added compliance details modal and compliance details component (#18118) 2023-05-05 14:07:51 +02:00
locale Convert actions.js to typescript (#17446) 2023-02-03 11:56:44 -06:00
metamask Fix autolock field to accept decimals in Firefox (#19653) 2023-06-22 10:29:24 -06:00
send Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
swaps Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens (#20388) 2023-08-03 18:22:17 -02:30
domains.js Fix/use etherjs specific imports (#15461) 2023-01-24 08:10:36 -06:00
index.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00