From 3935bd67f8053ad2eb315870405bbdcb05472a20 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sun, 12 Apr 2026 14:08:45 -0400 Subject: [PATCH] Sort months in recurrent chip text for consistent display --- src/utils/ChoreCardHelpers.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/ChoreCardHelpers.jsx b/src/utils/ChoreCardHelpers.jsx index 17011c6..01008f6 100644 --- a/src/utils/ChoreCardHelpers.jsx +++ b/src/utils/ChoreCardHelpers.jsx @@ -161,7 +161,9 @@ export const getRecurrentChipText = chore => { return result } else { let freqData = metadata - const months = freqData.months.map(m => moment().month(m).format('MMM')) + const months = [...freqData.months] + .sort((a, b) => allMonths.indexOf(a) - allMonths.indexOf(b)) + .map(m => moment().month(m).format('MMM')) return `${chore.frequency}${dayOfMonthSuffix( chore.frequency, )} of ${months.join(', ')}`