1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix redirection to the build quotes page from the swaps failed page (#11025)

This commit is contained in:
Daniel 2021-05-10 19:18:37 +02:00 committed by Dan Miller
parent e466206040
commit da1720a9ec

View File

@ -270,7 +270,7 @@ export default function Swap() {
render={() => {
if (tradeTxData && !conversionError) {
return <Redirect to={{ pathname: AWAITING_SWAP_ROUTE }} />;
} else if (tradeTxData) {
} else if (tradeTxData && routeState) {
return <Redirect to={{ pathname: SWAPS_ERROR_ROUTE }} />;
} else if (routeState === 'loading' && aggregatorMetadata) {
return <Redirect to={{ pathname: LOADING_QUOTES_ROUTE }} />;