Skip to content

Commit 5db5e17

Browse files
committed
fix(web): vote-popup-opening-on-user-reject
1 parent 56cdf7b commit 5db5e17

File tree

1 file changed

+2
-2
lines changed
  • web/src/pages/Cases/CaseDetails/Voting/Classic

1 file changed

+2
-2
lines changed

web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const Vote: React.FC<IVote> = ({ arbitrable, voteIDs, setIsOpen }) => {
4040
],
4141
});
4242
if (walletClient) {
43-
await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(() => {
44-
setIsOpen(true);
43+
await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(({ status }) => {
44+
setIsOpen(status);
4545
});
4646
}
4747
},

0 commit comments

Comments
 (0)