Skip to content

Commit

Permalink
clear token choices from local storage after finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Aug 1, 2024
1 parent fabfdc4 commit bacbc94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nextjs/app/cow/_components/FinalizePool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export const FinalizePool = ({ pool, refetchPool }: { pool: BCowPool; refetchPoo
setIsFinalizing(true);
await finalize();
setIsFinalizing(false);
localStorage.removeItem("token1");
localStorage.removeItem("token2");
refetchPool();
} catch (e) {
console.error("Error finalizing pool", e);
Expand Down

0 comments on commit bacbc94

Please sign in to comment.