1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/components/app/edit-gas-fee-popover/edit-gas-item
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
..
edit-gas-item.js When gas fees suggested by dapp is too high, show warning color and icon (#19088) 2023-06-08 13:26:18 +03:00
edit-gas-item.test.js Fix account selectors when balances are missing (#20385) 2023-08-30 16:21:06 -02:30
index.js Adding edit gas fee modal (#12624) 2021-11-18 23:24:58 +05:30
index.scss Updating all background-default hovers colors (#16519) 2022-11-17 12:53:51 -08:00
useCustomTimeEstimate.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00
useGasItemFeeDetails.js feature: convert level 32 files to typescript (#17390) 2023-01-27 18:28:03 +00:00