mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 15:50:28 +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={() => {
|
render={() => {
|
||||||
if (tradeTxData && !conversionError) {
|
if (tradeTxData && !conversionError) {
|
||||||
return <Redirect to={{ pathname: AWAITING_SWAP_ROUTE }} />;
|
return <Redirect to={{ pathname: AWAITING_SWAP_ROUTE }} />;
|
||||||
} else if (tradeTxData) {
|
} else if (tradeTxData && routeState) {
|
||||||
return <Redirect to={{ pathname: SWAPS_ERROR_ROUTE }} />;
|
return <Redirect to={{ pathname: SWAPS_ERROR_ROUTE }} />;
|
||||||
} else if (routeState === 'loading' && aggregatorMetadata) {
|
} else if (routeState === 'loading' && aggregatorMetadata) {
|
||||||
return <Redirect to={{ pathname: LOADING_QUOTES_ROUTE }} />;
|
return <Redirect to={{ pathname: LOADING_QUOTES_ROUTE }} />;
|
||||||
|
Loading…
Reference in New Issue
Block a user