Skip to content

Commit

Permalink
Fix: reset allowance query (#429)
Browse files Browse the repository at this point in the history
Otherwise allowance state is persisted between tokens
  • Loading branch information
everdimension authored Feb 28, 2024
1 parent 243f3ad commit 2ae1d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/pages/SwapForm/SwapForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function SwapForm() {
spender: quote?.token_spender ?? null,
contractAddress,
enabled: quotesData.done && Boolean(quote && !quote.enough_allowance),
keepPreviousData: true,
keepPreviousData: false,
});

const signerSenderRef = useRef<SignerSenderHandle | null>(null);
Expand Down

0 comments on commit 2ae1d41

Please sign in to comment.