Skip to content

Commit

Permalink
Add onInstructions to relinquish as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Apr 29, 2024
1 parent 33800c0 commit a848af5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/VoteOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export const VoteOptions: FC<{
if (canRelinquishVote(choice.index)) {
try {
setCurrVote(choice.index);
await relinquishVote({ choice: choice.index });
await relinquishVote({
choice: choice.index,
onInstructions: onInstructions(provider),
});
toast("Vote relinquished");
} catch (e: any) {
if (!(e instanceof WalletSignTransactionError)) {
Expand Down

0 comments on commit a848af5

Please sign in to comment.