1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/ui/selectors
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
..
institutional MMI start script and fixes a bug preventing it to run (#19594) 2023-06-15 17:57:35 +01:00
approvals.test.ts Approval flow for add & switch network (#19656) 2023-06-29 16:51:56 +01:00
approvals.ts Approval flow for add & switch network (#19656) 2023-06-29 16:51:56 +01:00
confirm-transaction.js Add Opt-out Settings toggle for 4byte contract method names resolution (#20098) 2023-08-04 13:28:37 -04:00
confirm-transaction.test.js feat: Refactor Transaction Confirmation selector (#18796) 2023-05-11 07:56:17 +02:00
custom-gas.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
custom-gas.test.js adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00
first-time-flow.js Remove ONBOARDING_V2 flag for release (#16865) 2023-01-13 10:25:01 -06:00
index.js Approvals selector refactor (#18664) 2023-04-25 10:47:49 +01:00
metametrics.js Implement event fragments (#12251) 2022-01-12 13:31:54 -06:00
metametrics.test.js Implement event fragments (#12251) 2022-01-12 13:31:54 -06:00
nonce-sorted-transactions-selector.test.js feat(878): implement network txn toggle and new style (#20363) 2023-08-24 11:27:42 +01:00
permissions.js Extend wallet_watchAsset to support ERC721 and ERC1155 tokens (#19454) 2023-06-15 15:18:12 -05:00
permissions.test.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
selectors.js Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
selectors.test.js adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00
transactions.js feat(878): implement network txn toggle and new style (#20363) 2023-08-24 11:27:42 +01:00
transactions.test.js feat(878): implement network txn toggle and new style (#20363) 2023-08-24 11:27:42 +01:00