Skip to content

Commit

Permalink
Merge branch 'kyberai-small-improvements' of https://github.com/Kyber…
Browse files Browse the repository at this point in the history
…Network/kyberswap-interface into kyberai-small-improvements
  • Loading branch information
XiaoYhun committed Sep 8, 2023
2 parents 49db109 + f9f4522 commit 225990b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/swapv2/LimitOrder/LimitOrderForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,11 @@ const LimitOrderForm = function LimitOrderForm({
}
}, [currencyIn?.isNative, currentAllowance, parseInputAmount, parsedActiveOrderMakingAmount])

const [approval, approveCallback] = useApproveCallback(parseInputAmount, limitOrderContract || '', !enoughAllowance)
const [approval, approveCallback] = useApproveCallback(
parseInputAmount,
limitOrderContract || undefined,
!enoughAllowance,
)

const { inputError, outPutError } = useValidateInputError({
inputAmount,
Expand Down

0 comments on commit 225990b

Please sign in to comment.