1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
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
..
components Delete Dai/Sai migration notification (#8418) 2020-04-27 16:23:43 -02:30
contexts Migrate "i18n-provider" to new context API (#8213) 2020-03-23 14:07:05 -03:00
css Remove unused ShapeShift components (#8402) 2020-04-24 12:33:24 -03:00
ducks Remove unused transForward state and actions (#8401) 2020-04-23 20:32:08 -03:00
helpers Fix connected sites modal styling; add shortenUrl function (#8409) 2020-04-27 08:36:08 -07:00
pages Delete Dai/Sai migration notification (#8418) 2020-04-27 16:23:43 -02:30
selectors Delete Dai/Sai migration notification (#8418) 2020-04-27 16:23:43 -02:30
store Return Promise from setSelectedAddress thunk (#8426) 2020-04-27 18:56:17 -03:00