Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
samuveth authored Nov 17, 2023
1 parent 327efde commit 72425eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validations/passport-gated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default class extends Validation {

if (scoreThreshold === undefined)
throw new Error('Score threshold is required');
if (requiredStamps.length > 0 && (!operator || operator === 'ANY'))
if (requiredStamps.length > 0 && (!operator || operator === 'NONE'))
throw new Error('Operator is required when selecting required stamps');

const provider = snapshot.utils.getProvider(this.network);
Expand Down

0 comments on commit 72425eb

Please sign in to comment.