Skip to content

Commit

Permalink
added toast
Browse files Browse the repository at this point in the history
  • Loading branch information
manukj committed Mar 17, 2024
1 parent 492532b commit b5f230b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/nextjs/app/vote/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const Vote = () => {
setIsLoading(false);
}, 1000);
} catch (err) {
console.log(err);
console.log("err", err);
setIsLoading(false);
toast.error("Casting vote failed, please try again");
toast.error("Casting vote failed, please try again ");
}
};

Expand Down Expand Up @@ -118,7 +118,6 @@ const Vote = () => {
if (!clickedIndex || !coordinatorPubKey || !keypair) {
return;
}

const command: PCommand = new PCommand(
1n, // stateindex
keypair.pubKey, // userMaciPubKey
Expand Down

0 comments on commit b5f230b

Please sign in to comment.