Skip to content

Commit

Permalink
add === notation
Browse files Browse the repository at this point in the history
  • Loading branch information
serdiukov-o-nordwhale committed May 27, 2020
1 parent fdcf659 commit bdbda18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/verification/verificationAPI.js
Expand Up @@ -115,7 +115,7 @@ const setup = (app: Router, verifier: VerificationAPI, storage: StorageAPI) => {
const isApprovedToClaim = ['approved', 'whitelisted'].includes(get(user, 'claimQueue.status'))

// only approved users can do the process
if (claimQueueAllowed && !isApprovedToClaim) {
if (claimQueueAllowed > 0 && false === isApprovedToClaim) {
throw new Error('User not approved to claim, not in queue or still pending')
}

Expand Down

0 comments on commit bdbda18

Please sign in to comment.