From 27866e86f05e9411214beed4a4b995984ca2fbb5 Mon Sep 17 00:00:00 2001 From: Mannu Date: Sat, 16 May 2026 12:07:19 +0530 Subject: [PATCH] fix: month order - Apr first at top, then subsequent months --- packages/web/components/WorkbookView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/components/WorkbookView.tsx b/packages/web/components/WorkbookView.tsx index 9e02575..901aa75 100644 --- a/packages/web/components/WorkbookView.tsx +++ b/packages/web/components/WorkbookView.tsx @@ -657,9 +657,9 @@ function HourlyGenerationSheet({ hourly, codYear }: { hourly: HourlyData; codYea {hasWind && {Math.round(windYr).toLocaleString()} MWh} - {/* Month rows - reverse order (Apr first for Indian FY) */} + {/* Month rows - forward order (Apr first, then subsequent months) */} {isYearExpanded && [...Array(12)].map((_, mi) => { - const pos = 11 - mi; // Reverse: 11->0 gives Apr first + const pos = mi; // Forward: 0=Apr, 1=May, etc. const month = monthPositions[pos]; const monthKey = `${year}-${month}`; const isMonthExpanded = expandedMonths.has(monthKey);