1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/components/institutional
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
..
compliance-details Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
compliance-details-modal [MMI] Added compliance details modal and compliance details component (#18118) 2023-05-05 14:07:51 +02:00
compliance-modal Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
compliance-settings Update Text import paths: component library/ (#19987) 2023-07-17 14:00:16 -07:00
confirm-remove-jwt-modal [MMI] Fixed remove custodian token (#20021) 2023-07-17 12:11:38 +02:00
custody-confirm-link-modal Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
custody-labels Update Text import paths: component library/ (#19987) 2023-07-17 14:00:16 -07:00
interactive-replacement-token-modal [MMI] Update Modals (#20054) 2023-07-17 19:34:32 +02:00
interactive-replacement-token-notification [MMI] Fixed remove custodian token (#20021) 2023-07-17 12:11:38 +02:00
jwt-dropdown Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
jwt-url-form Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
note-to-trader Update Text import paths: component library/ (#19987) 2023-07-17 14:00:16 -07:00
transaction-failed-modal [MMI] Update Modals (#20054) 2023-07-17 19:34:32 +02:00
wrong-network-notification Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
institutional-components.scss [MMI] Add-compliance-details component (#18575) 2023-04-21 13:28:26 -05:00