Skip to content

Commit

Permalink
feat: render success in revoke
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Dec 26, 2024
1 parent 834b8dd commit 1bd7ca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/handle-approval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ async function onRevokeClick() {
const tx = await tokenContract.approve(permit2Address, 0);
await tx.wait();

renderSuccessModal(tx.hash);

await getCurrentAllowance();
} catch (error) {
console.error("Error revoking allowance:", error);
Expand Down

0 comments on commit 1bd7ca8

Please sign in to comment.