From 16f0aaf68e3766a03c0f6acc4ca5ca29b1b75916 Mon Sep 17 00:00:00 2001 From: Danh Date: Fri, 9 Jun 2023 17:37:37 +0700 Subject: [PATCH] show not support msg --- src/pages/CrossChain/useValidateInput.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/CrossChain/useValidateInput.ts b/src/pages/CrossChain/useValidateInput.ts index 12ac839648..c008b6297a 100644 --- a/src/pages/CrossChain/useValidateInput.ts +++ b/src/pages/CrossChain/useValidateInput.ts @@ -41,7 +41,13 @@ export default function useValidateInput({ if (!listTokenOut.length && !listTokenIn.length && !loadingToken) { return { state: 'error', tip: t`Cannot get token info. Please try again later.` } } - if (errorGetRoute || (currencyIn && currencyOut && !isTokenSupport)) { + if (currencyIn && currencyOut && !isTokenSupport) { + return { + state: 'warn', + tip: t`This token is not supported yet for cross-chain swaps.`, + } + } + if (errorGetRoute) { return { state: 'warn', tip: t`We couldn't find a route for this trade. You can try changing the amount to swap, increasing the slippage, selecting a different chain or tokens, or try again later.`,