1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
Erik Marks 11d176fde6 Tighten up loading indication logic (#10103)
Ensures that `hideLoadingIndication` is always called in all actions that call `showLoadingIndication`. It's unclear how many of these actions were failing to hide the loading indication, because other actions superset `hideLoadingIndication`. 

At the very least, `updateTransaction` was probably failing to hide the loading indication in the error case.

This PR also refactors a lot of actions to call `hideLoadingIndication` once in `finally` blocks as opposed to multiple times across `try` and `catch` blocks. We avoided making changes to functions using `Promise` methods, because `Promise.finally` is not supported by Waterfox, and it's not properly transpiled by Babel.
2020-12-18 17:37:07 -03:30
..
components set last provider when switching to a customRPC (#10084) 2020-12-18 17:35:07 -03:30
contexts add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00
css Use 1px borders on inputs and buttons (#9766) 2020-10-30 13:31:42 -05:00
ducks Fetch swap quote refresh time from API (#10069) 2020-12-15 16:56:00 -03:30
helpers Fix fetch-with-cache handling of interwoven requests (#10079) 2020-12-15 16:56:00 -03:30
hooks Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
pages Fetch swap quote refresh time from API (#10069) 2020-12-15 16:56:00 -03:30
selectors Remove unused state from Redux gas slice (#9975) 2020-12-03 16:23:36 -03:30
store Tighten up loading indication logic (#10103) 2020-12-18 17:37:07 -03:30