Skip to content

Commit

Permalink
fix: display meaning full error for user cant fill their order
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Aug 5, 2024
1 parent 3e41da5 commit 9a32e31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/SwapForm/SwapModal/ConfirmSwapModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ export default function ConfirmSwapModalContent({
</Text>
)
}
if (
errorWhileBuildRoute.includes(
'Please use a different wallet to fill an order that you created via the KyberSwap Limit Order',
)
)
return <Text>{errorWhileBuildRoute}</Text>

return (
<Text>
<Trans>There was an issue while trying to confirm your price. Please try to swap again.</Trans>
Expand Down

0 comments on commit 9a32e31

Please sign in to comment.