1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00
metamask-extension/test/unit
Mark Stacey 3ab00b48df
Return Promise from setSelectedAddress thunk (#8426)
`setSelectedAddress` returned a thunk that didn't return a Promise,
despite doing async work. It now returns a Promise.

This action creator was only called in two places, and neither benefit
from using the Promise now returned. They were both event handlers. In
both cases there was an existing Promise chain, but the only thing
after this set was a `catch` block that displayed any error
encountered. I decided not to return the result of `setSelectedAddress`
to this chain, because all it would do is set the warning a second
time in the event of failure.
2020-04-27 18:56:17 -03:00
..
actions Move action constants to separate module (#8308) 2020-04-08 21:35:37 -03:00
app Mark PendingTransactionTracker#resubmitPendingTxs as async (#8399) 2020-04-27 13:24:39 -02:30
migrations Delete Dai/Sai migration notification (#8418) 2020-04-27 16:23:43 -02:30
responsive/components Remove redux-test-utils dependency (#8070) 2020-02-18 14:54:03 -03:30
ui Return Promise from setSelectedAddress thunk (#8426) 2020-04-27 18:56:17 -03:00
balance-formatter-test.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
localhostState.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30