1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/components/app
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
..
account-list-item [MMI] Add code fences in signature-request (#18770) 2023-05-24 13:41:21 +02:00
account-menu [FLASK] Add Snaps Keyring (#19710) 2023-06-29 09:24:08 -04:00
add-network Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
advanced-gas-controls Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
advanced-gas-fee-popover Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
advanced-gas-inputs Replaced all fa-icon-circle with INFO icon (#17539) 2023-05-09 23:04:58 +05:30
alerts Replaced all fa-icon-circle with INFO icon (#17539) 2023-05-09 23:04:58 +05:30
app-loading-spinner swap hex colors in ui/components/app folder (#14189) 2022-03-25 08:32:36 -07:00
approve-content-card Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
asset-list Updated action list in token, NFTs and activity view (#19702) 2023-06-27 12:05:31 +05:30
beta-header Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
cancel-button Adding story for CancelButton (#19566) 2023-06-20 13:44:54 -07:00
cancel-speedup-popover Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
configure-snap-popup Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirm-data Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirm-gas-display Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirm-hexdata Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirm-page-container Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirm-subtitle Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirm-title Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
confirmation-warning-modal Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
connected-accounts-list Fix/18492/update icon ts app folder (#18645) 2023-04-19 14:16:49 -07:00
connected-accounts-permissions Replacing deprecated constants & creating stories (#19686) 2023-06-23 14:38:40 -07:00
connected-sites-list Fix misaligned icons in 'Connected sites' modal (#19944) 2023-07-12 23:17:15 +05:30
connected-status-indicator remove Unused CSS (#19602) 2023-06-19 23:29:52 +05:30
contact-list Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
create-new-vault Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
currency-input Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
custom-nonce Added customize tx nonce on ERC20 approve screen when feature is enabled (#17945) 2023-07-12 14:32:46 -04:00
custom-spending-cap Part of #18714 in ui\components\app\custom-spending-cap (#20039) 2023-07-17 22:03:46 -07:00
desktop-enable-button Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
detected-token Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
edit-gas-display Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
edit-gas-fee-button Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
edit-gas-fee-popover Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
edit-gas-popover feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
flask/experimental-area feat: add yaml feature management (#18125) 2023-04-25 16:32:51 +02:00
gas-details-item Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
gas-timing Fix unknown processing time not showing in warning color (#19527) 2023-06-15 10:52:08 -05:00
hold-to-reveal-button Fix hold to reveal button on mobile browsers (#19847) 2023-06-30 14:11:29 -07:00
home-notification Replaced all fa-icon-circle with INFO icon (#17539) 2023-05-09 23:04:58 +05:30
info-box Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
ledger-instruction-field Update Text import paths: component library/ (#19987) 2023-07-17 14:00:16 -07:00
loading-network-screen Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
metamask-template-renderer Approval flow adding success and error pages (#19778) 2023-07-12 09:29:54 +01:00
metamask-translation devDeps: storybook@7 (#19092) 2023-05-18 11:07:42 +09:00
modal Adding deprecation tags to popover and old modals (#19556) 2023-06-14 09:47:16 -07:00
modals Update Text import paths: component library/ (#19987) 2023-07-17 14:00:16 -07:00
multilayer-fee-message creating story for multilayer-fee-message & nft-options (#19567) 2023-06-20 13:43:27 -07:00
multiple-notifications Update media query instances (#15068) 2022-08-04 09:03:02 -05:00
network-account-balance-header Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
network-display fix: refactor linea goerli testnet implementation (#19321) 2023-06-15 09:08:07 -02:30
nft-default-image Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
nft-details Fixing 'View on Opensea' link for main and testnet NFTs (#19797) 2023-08-27 16:25:30 -02:30
nft-options UX: Ensure NFT Options Menu is Same Size as Tokens (#19953) 2023-07-11 09:11:31 -05:00
nfts-detection-notice UX: Updated nfts detection notice to use Banner (#20053) 2023-07-17 21:28:36 +05:30
nfts-items Upgrade assets-controllers to v9 (#19472) 2023-06-09 15:48:48 -05:00
nfts-tab Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
permission-cell Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
permission-page-container [FLASK] Allow Snaps to use eth_accounts as a revokable permission (#19306) 2023-07-06 22:54:27 +02:00
permissions-connect-footer Consolidating Zendesk URLs in to constants file (#15669) 2022-08-23 09:19:31 -05:00
permissions-connect-header [FLASK] Allow Snaps to use eth_accounts as a revokable permission (#19306) 2023-07-06 22:54:27 +02:00
permissions-connect-permission-list [FLASK] Revert changes made to stable permission display (UI design) (#18470) 2023-04-14 12:04:23 +02:00
qr-hardware-popover Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
recovery-phrase-reminder Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
security-provider-banner-message Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
selected-account removed mmi fencing from copy icon in header (#19087) 2023-05-10 15:41:03 +02:00
set-approval-for-all-warning Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
signature-request Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
signature-request-header Using NetworkAccountBalanceHeader component on SIWE screen (#19361) 2023-06-06 09:53:28 -04:00
signature-request-original Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
signature-request-siwe Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
snaps Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
srp-input Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
srp-quiz-modal Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
step-progress-bar Overall CSS #13441 (#13902) 2022-05-16 13:38:04 -05:00
tab-bar UX Multichain: updated ui for settings page (#19167) 2023-05-23 23:59:00 +05:30
terms-of-use-popup Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
token-cell Update Text import paths: /multichain (#20061) 2023-07-17 22:02:02 -07:00
token-list Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
token-list-display Feat/hide 0 balances (#13306) 2022-02-02 12:32:16 +01:00
transaction-activity-log Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
transaction-alerts Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
transaction-breakdown Swaps UI update (#19169) 2023-06-15 20:17:21 +02:00
transaction-decoding Replaced all fa-icon-circle with INFO icon (#17539) 2023-05-09 23:04:58 +05:30
transaction-detail Replaced all fa-icon-circle with INFO icon (#17539) 2023-05-09 23:04:58 +05:30
transaction-detail-item Fix fallback gas estimation (#19746) 2023-06-26 16:13:16 -02:30
transaction-icon Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
transaction-list Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
transaction-list-item Multichain Activity Screen (#19557) 2023-07-17 13:48:15 -04:00
transaction-list-item-details Updating Text and import paths (#19949) 2023-07-14 10:59:30 -07:00
transaction-status-label [MMI] Add the custody status text in the transaction status (#18797) 2023-04-28 09:11:16 -02:30
user-preferenced-currency-display Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
user-preferenced-currency-input Continue converting tests from enzyme to @testing-library/react (#16175) 2022-10-20 11:20:49 -07:00
user-preferenced-token-input Continue converting tests from enzyme to @testing-library/react (#16175) 2022-10-20 11:20:49 -07:00
wallet-overview UX: Remove Portfolio from Token Overview Page (#19988) 2023-07-13 12:52:27 -05:00
whats-new-popup Merge remote-tracking branch 'origin/master' into Version-v10.35.0 2023-08-14 14:31:37 -02:30
app-components.scss UX: Updated nfts detection notice to use Banner (#20053) 2023-07-17 21:28:36 +05:30
menu-droppo.js Convert unit test render from enzyme to @testing-library/react. (#15091) 2022-08-03 13:30:43 -07:00