Skip to content

Commit

Permalink
Fix usage of magic number for blurbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Oct 3, 2023
1 parent 2962913 commit 2bf7b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2bf7b5c

Please sign in to comment.