1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/ui/ducks
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
..
alerts feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
app Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
confirm-transaction adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00
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] Removed compliance feature from the codebase (#20088) 2023-07-20 10:11:14 +02:00
locale Convert actions.js to typescript (#17446) 2023-02-03 11:56:44 -06:00
metamask Add Opt-out Settings toggle for 4byte contract method names resolution (#20098) 2023-08-04 13:28:37 -04:00
send Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
swaps Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens (#20388) 2023-08-03 18:19:50 -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