1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/ui/components/app/gas-details-item
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
..
gas-details-item-title Fix account selectors when balances are missing (#20385) 2023-08-26 00:28:24 -02:30
gas-details-item.js Fix fallback gas estimation (#19746) 2023-06-26 16:13:16 -02:30
gas-details-item.stories.js Changes to gas-items-details (#19075) 2023-05-15 10:56:20 -07:00
gas-details-item.test.js When gas fees suggested by dapp is too high, show warning color and icon (#19088) 2023-06-08 13:26:18 +03:00
index.js using 1559 V2 for cancel speed up flows (#13019) 2022-01-06 08:17:26 +05:30
index.scss Update design tokens library from 1.5 to 1.6 WIP (#14732) 2022-05-25 08:35:36 -07:00