Add missing parentheses

This commit is contained in:
Ian Philips 2022-08-29 13:47:24 -06:00
parent 84432e5ac4
commit 0318f7a12b

View File

@ -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
) )