From 2bf7b5cd6cbdafeab7341339aad9196f06be860a Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 3 Oct 2023 18:27:43 +0200 Subject: [PATCH] Fix usage of magic number for blurbs --- components/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/notifications.js b/components/notifications.js index 21e97c038..226e53f58 100644 --- a/components/notifications.js +++ b/components/notifications.js @@ -122,7 +122,7 @@ const defaultOnClick = n => { function Streak ({ n }) { function blurb (n) { - const index = Number(n.id) % 6 + const index = Number(n.id) % Math.min(FOUND_BLURBS.length, LOST_BLURBS.length) if (n.days) { return `After ${numWithUnits(n.days, { abbreviate: false,