Skip to content

Commit

Permalink
log data issuer taxon
Browse files Browse the repository at this point in the history
  • Loading branch information
ebedoise committed Aug 1, 2024
1 parent 3f8f3c1 commit 76d30e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/poll/src/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export const Choices = () => {
if (loading) return <Spinner />;
if (!data || !data.poll) return <>Error</>;

console.log('data?.poll?.issuer: ', data.poll.issuer);
console.log('data?.poll?.taxon: ', data.poll.taxon);

const alreadyVoted = haveAlreadyVote(data.poll.voters, address);

const handleClickOnChoice = (choice: ChoiceType) => {
Expand All @@ -49,9 +52,6 @@ export const Choices = () => {
};

const handleVote = async (choiceId: string) => {
console.log('alreadyVoted: ', alreadyVoted);
console.log('address: ', address);

if (!address) {
toast({
title: 'Connect your wallet to vote',
Expand Down

0 comments on commit 76d30e2

Please sign in to comment.