Compare to the const ya sillyhead

This commit is contained in:
Ian Philips 2022-10-04 08:11:04 -06:00
parent 094bcaea17
commit 79af4b2be0

View File

@ -38,6 +38,7 @@ import { formatMoney } from 'common/util/format'
import { groupPath } from 'web/lib/firebase/groups'
import {
BETTING_STREAK_BONUS_AMOUNT,
BETTING_STREAK_BONUS_MAX,
UNIQUE_BETTOR_BONUS_AMOUNT,
} from 'common/economy'
import { groupBy, sum, uniqBy } from 'lodash'
@ -440,7 +441,8 @@ function IncomeNotificationItem(props: {
} else if (sourceType === 'tip') {
reasonText = !simple ? `tipped you on` : `in tips on`
} else if (sourceType === 'betting_streak_bonus') {
if (sourceText && +sourceText === 50) reasonText = '(max) for your'
if (sourceText && +sourceText === BETTING_STREAK_BONUS_MAX)
reasonText = '(max) for your'
else reasonText = 'for your'
} else if (sourceType === 'loan' && sourceText) {
reasonText = `of your invested predictions returned as a`