Skip to content

Commit

Permalink
fix(swap): Buy value recalculation race condition (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain authored Sep 14, 2023
2 parents 0a15ace + 4494c25 commit 095a34c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const EditSellAmount = () => {
React.useEffect(() => {
recalculateBuyValue(quantity)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [buyTokenInfo?.id])
}, [buyTokenInfo?.id, createOrder?.selectedPool?.poolId])

const onChangeQuantity = (text: string) => {
try {
Expand Down

0 comments on commit 095a34c

Please sign in to comment.