1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/ducks
Mark Stacey 3044aa0ebe
Fix account selectors when balances are missing ()
* 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
app Fix : UX: Multichain: Move "Import Tokens" to Modal () 2023-08-14 11:08:59 -05:00
confirm-transaction adapt to use networksMetadata state instead of single networkStatus and networksDetails state () 2023-08-03 12:31:35 -05:00
gas
history
institutional [MMI] Removed compliance feature from the codebase () 2023-07-20 10:11:14 +02:00
locale
metamask Add Opt-out Settings toggle for 4byte contract method names resolution () 2023-08-04 13:28:37 -04:00
send Fix account selectors when balances are missing () 2023-08-26 00:28:24 -02:30
swaps Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens () 2023-08-03 18:19:50 -02:30
domains.js
index.js