Skip to content

Commit

Permalink
fix: don't show routes with 0 fromAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jul 18, 2022
1 parent 0b24868 commit e2a4473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/widget/src/hooks/useSwapRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const useSwapRoutes = () => {
!isNaN(toChainId) &&
Boolean(fromTokenAddress) &&
Boolean(toTokenAddress) &&
Boolean(fromTokenAmount) &&
!isNaN(fromTokenAmount) &&
Number(fromTokenAmount) > 0 &&
!Number.isNaN(slippage);
const queryKey = [
'routes',
Expand Down

0 comments on commit e2a4473

Please sign in to comment.