From 79af4b2be002683ea363fc6eb11363dd9ed65693 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 4 Oct 2022 08:11:04 -0600 Subject: [PATCH] Compare to the const ya sillyhead --- web/pages/notifications.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index f2c2e61a..aee142cd 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -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`