Skip to content

Commit

Permalink
show not support msg
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Jun 9, 2023
1 parent 15acd57 commit 16f0aaf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/CrossChain/useValidateInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down

0 comments on commit 16f0aaf

Please sign in to comment.