1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 04:20:53 +01:00
metamask-extension/test/unit
Erik Marks 4b766fa538
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-17 21:34:43 -08:00
..
actions [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
app Update @metamask/controllers to v5.1.0 (#10096) 2020-12-17 12:06:29 -03:30
lib Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
migrations Migration to remove legacy local storage keys from localStorage (#9986) 2020-12-03 20:25:23 -03:30
responsive/components [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
ui Tighten up loading indication logic (#10103) 2020-12-17 21:34:43 -08:00
balance-formatter-test.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
localhostState.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00