From 98f42bfac69a8c9d33cd8243e94fe49920765ef6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Feb 2026 10:23:45 +0000 Subject: [PATCH] fix: remove unsafe .replace() calls in AgenticReadinessTab Removed .replace('/', '') calls on translation strings that could cause runtime errors if t() returns unexpected values. Now displays perMonth translation as-is. This fixes the 'o is not a function' error in production build. https://claude.ai/code/session_03272424-c661-4002-a75e-2f81579fdd6e --- frontend/components/tabs/AgenticReadinessTab.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/tabs/AgenticReadinessTab.tsx b/frontend/components/tabs/AgenticReadinessTab.tsx index 910cad4..8270727 100644 --- a/frontend/components/tabs/AgenticReadinessTab.tsx +++ b/frontend/components/tabs/AgenticReadinessTab.tsx @@ -2429,7 +2429,7 @@ function TierQueueSection({
- {t('agenticReadiness.sections.volumeColon')} {totalVolume.toLocaleString()} {t('agenticReadiness.table.int')}/{t('agenticReadiness.table.perMonth').replace('/', '')} + {t('agenticReadiness.sections.volumeColon')} {totalVolume.toLocaleString()} {t('agenticReadiness.table.int')}{t('agenticReadiness.table.perMonth')} {t('agenticReadiness.sections.costColon')} {formatCurrency(totalCost)}{t('agenticReadiness.table.perYear')} @@ -2675,7 +2675,7 @@ function HumanOnlyByReasonSection({ drilldownData, redFlagConfigs, t }: { drilld {/* Resumen */}
- {t('agenticReadiness.humanOnlyReasons.volumeTotal')} {totalVolume.toLocaleString()} {t('agenticReadiness.table.int')}/{t('agenticReadiness.table.perMonth').replace('/', '')} + {t('agenticReadiness.humanOnlyReasons.volumeTotal')} {totalVolume.toLocaleString()} {t('agenticReadiness.table.int')}{t('agenticReadiness.table.perMonth')} {t('agenticReadiness.summary.requiresIntervention')}