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

feature/default_network_editable
Daniel 4 years ago committed by GitHub
parent ef17aea69f
commit b4872b5fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/pages/swaps/index.js

@ -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…
Cancel
Save