1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Reset swaps routeState in navigateBackToBuildQuote (#10166)

This commit is contained in:
Dan J Miller 2021-01-22 15:30:56 -03:30 committed by GitHub
parent ab3b64e643
commit b1fc4addfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,8 +329,8 @@ export {
export const navigateBackToBuildQuote = (history) => { export const navigateBackToBuildQuote = (history) => {
return async (dispatch) => { return async (dispatch) => {
// TODO: Ensure any fetch in progress is cancelled // TODO: Ensure any fetch in progress is cancelled
await dispatch(setBackgroundSwapRouteState(''))
dispatch(navigatedBackToBuildQuote()) dispatch(navigatedBackToBuildQuote())
history.push(BUILD_QUOTE_ROUTE) history.push(BUILD_QUOTE_ROUTE)
} }
} }