This commit is contained in:
github-actions[bot] 2022-10-11 14:36:28 +00:00 committed by GitHub
commit 7c4b8a0f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ async function handleBettingStreakBadgeAward(
// TODO: check if already awarded 50th streak as well
if (newBettingStreak === 1 && alreadyHasBadgeForFirstStreak) return
if (newBettingStreak in streakerBadgeRarityThresholds) {
if (streakerBadgeRarityThresholds.includes(newBettingStreak)) {
const badge = {
type: 'STREAKER',
name: 'Streaker',

View File

@ -50,7 +50,7 @@ async function handleMarketCreatorBadgeAward(contractCreator: User) {
.where('creatorId', '==', contractCreator.id)
.where('resolution', '!=', 'CANCEL')
)
if (contracts.length in marketCreatorBadgeRarityThresholds) {
if (marketCreatorBadgeRarityThresholds.includes(contracts.length)) {
const badge = {
type: 'MARKET_CREATOR',
name: 'Market Creator',