mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 20:02:58 +01:00
Fix redirection to the build quotes page from the swaps failed page (#11025)
This commit is contained in:
parent
ef17aea69f
commit
b4872b5fe2
@ -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