1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
metamask-extension/ui/components/institutional
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
..
confirm-remove-jwt-modal
custody-confirm-link-modal Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
custody-labels Update Text import paths: /institutional (#20064) 2023-07-18 08:15:25 -07:00
interactive-replacement-token-modal [MMI] Removed compliance feature from the codebase (#20088) 2023-07-20 10:11:14 +02:00
interactive-replacement-token-notification Update Text import paths: /institutional (#20064) 2023-07-18 08:15:25 -07:00
jwt-dropdown Updating Icon types and component to use TS Box component (#19990) 2023-07-25 09:05:37 -07:00
jwt-url-form Update Text import paths: /institutional (#20064) 2023-07-18 08:15:25 -07:00
note-to-trader Update Text import paths: /institutional (#20064) 2023-07-18 08:15:25 -07:00
transaction-failed-modal
wrong-network-notification Update Text import paths: /institutional (#20064) 2023-07-18 08:15:25 -07:00
institutional-components.scss [MMI] Removed compliance feature from the codebase (#20088) 2023-07-20 10:11:14 +02:00