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:
parent
e466206040
commit
da1720a9ec
@ -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 }} />;
|
||||
|
Loading…
Reference in New Issue
Block a user