diff --git a/website/server/models/subscriptionPlan.js b/website/server/models/subscriptionPlan.js index 49a7ca0600..31849ceb94 100644 --- a/website/server/models/subscriptionPlan.js +++ b/website/server/models/subscriptionPlan.js @@ -58,7 +58,7 @@ schema.methods.incrementPerkCounterAndReward = async function incrementPerkCount } // if perkMonthCount wasn't used before, initialize it. if (this.perkMonthCount === undefined || this.perkMonthCount === -1) { - if (this.planId == 'basic_earned') { + if (this.planId === 'basic_earned') { this.perkMonthCount = (this.consecutive.count - 1) % SUBSCRIPTION_BASIC_BLOCK_LENGTH; } else { this.perkMonthCount = 0;