Skip to content

Commit

Permalink
refresh quote amount when changing token
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jul 1, 2024
1 parent 244f6ec commit 185890e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/SwapForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const SwapForm = () => {
) || [];

return [BigInt(quoteAmountString ?? 0), quoteIsLoading];
}, [isSwap1, quote1Error, quote1IsLoading, quote2Error, quote2IsLoading]);
}, [token0, token1, isSwap1, quote1Error, quote1IsLoading, quote2Error, quote2IsLoading]);

// update the token1 amount when the quote amount changes
useEffect(() => {
Expand Down

0 comments on commit 185890e

Please sign in to comment.