Skip to content

Commit

Permalink
reset token amounts after swap completed
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jun 5, 2024
1 parent faaa471 commit 8d17a9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/app/SwapForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const SwapForm = () => {
token0AmountRaw,
token1Amount,
setToken0Amount,
setToken1Amount,
setToken0AmountRaw,
setToken1AmountRaw,
} = useSwapStore();
Expand Down Expand Up @@ -356,6 +357,8 @@ export const SwapForm = () => {
return (
<Success
onDone={() => {
setToken0Amount("0");
setToken1Amount("0");
resetApproval();
resetSwap();
swapResult.refetch();
Expand Down

0 comments on commit 8d17a9a

Please sign in to comment.