From e32131d32ef4532ed767c993c956f2e206545198 Mon Sep 17 00:00:00 2001 From: Jose Selesan Date: Thu, 27 Aug 2026 10:21:39 -0300 Subject: [PATCH] fix(analysis): only skip inflation for current month, not last complete month The last complete month's inflation is usually available by the 14th of the current month. Previously July was always skipped even though data exists. --- .../features/analysis/components/MonthlyVariationTable.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/features/analysis/components/MonthlyVariationTable.tsx b/apps/frontend/src/features/analysis/components/MonthlyVariationTable.tsx index a27b8d5..4c58861 100644 --- a/apps/frontend/src/features/analysis/components/MonthlyVariationTable.tsx +++ b/apps/frontend/src/features/analysis/components/MonthlyVariationTable.tsx @@ -160,7 +160,12 @@ export function MonthlyVariationTable() { ); let inflation: number | null = null; - if (month !== currentMonth && month !== lastCompleteMonth) { + const dayOfMonth = today.getDate(); + const skipLastComplete = dayOfMonth < 14; + if ( + month !== currentMonth && + !(skipLastComplete && month === lastCompleteMonth) + ) { inflation = inflationMap.get(month) ?? null; }