Skip to content

Commit

Permalink
fix: add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 30, 2023
1 parent 86549e6 commit 08095ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/nftClaimer/mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function payload(input: {
throw new Error('Space has closed minting');
}

if (!hasVoted(params.recipient, proposal as Proposal)) {
if (!(await hasVoted(params.recipient, proposal as Proposal))) {
throw new Error('Minting is open only for voters');
}

Expand Down

0 comments on commit 08095ea

Please sign in to comment.