From 786a65c7a8914401b54ed02432408f499ca9709e Mon Sep 17 00:00:00 2001 From: Noah Prince Date: Wed, 27 Nov 2024 09:06:04 -0800 Subject: [PATCH] Show jupiter error before tx error --- src/features/swaps/SwapScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/swaps/SwapScreen.tsx b/src/features/swaps/SwapScreen.tsx index b91bec66..dcbd85b7 100644 --- a/src/features/swaps/SwapScreen.tsx +++ b/src/features/swaps/SwapScreen.tsx @@ -178,8 +178,8 @@ const SwapScreen = () => { return t('swapsScreen.insufficientTokensToSwap') if (hasInsufficientBalance) return t('generic.insufficientBalance') if (networkError) return networkError - if (transactionError) return transactionError if (jupiterError) return jupiterError + if (transactionError) return transactionError if (routeNotFound) return t('swapsScreen.routeNotFound') }, [ hasRecipientError,