Skip to content

Commit

Permalink
fix(web): vote-popup-opening-on-user-reject
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Feb 6, 2024
1 parent 56cdf7b commit 5db5e17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const Vote: React.FC<IVote> = ({ arbitrable, voteIDs, setIsOpen }) => {
],
});
if (walletClient) {
await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(() => {
setIsOpen(true);
await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(({ status }) => {
setIsOpen(status);
});
}
},
Expand Down

0 comments on commit 5db5e17

Please sign in to comment.