Add missing parentheses
This commit is contained in:
parent
84432e5ac4
commit
0318f7a12b
|
@ -28,7 +28,7 @@ const resetBettingStreakForUser = async (user: User) => {
|
||||||
const betStreakResetTime = Date.now() - DAY_MS
|
const betStreakResetTime = Date.now() - DAY_MS
|
||||||
// if they made a bet within the last day, don't reset their streak
|
// if they made a bet within the last day, don't reset their streak
|
||||||
if (
|
if (
|
||||||
(user.lastBetTime ?? 0 > betStreakResetTime) ||
|
(user?.lastBetTime ?? 0) > betStreakResetTime ||
|
||||||
!user.currentBettingStreak ||
|
!user.currentBettingStreak ||
|
||||||
user.currentBettingStreak === 0
|
user.currentBettingStreak === 0
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user