From 08095ea77f2383427211ae4365cb13287d68c618 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:46:59 +0900 Subject: [PATCH] fix: add missing `await` --- src/lib/nftClaimer/mint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/nftClaimer/mint.ts b/src/lib/nftClaimer/mint.ts index 73a51d6..4e8f17d 100644 --- a/src/lib/nftClaimer/mint.ts +++ b/src/lib/nftClaimer/mint.ts @@ -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'); }