Skip to content

Commit

Permalink
fixing requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Feb 4, 2024
1 parent 922fda9 commit 666539d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/unlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export const meetsRequirement = async (user: `0x${string}`, gate: any) => {
})) as number;
const requiredBalance =
typeof gate.balance === "undefined" ? 1 : parseInt(gate.balance);
return balance > requiredBalance;
return balance >= requiredBalance;
};

0 comments on commit 666539d

Please sign in to comment.