From 8d5ecd401de267bb4c46b41a429fa5d34655f0a6 Mon Sep 17 00:00:00 2001 From: DosAi Date: Sun, 2 Nov 2025 15:55:21 +0300 Subject: [PATCH] Fix production build errors --- frontend/components/CalculatorEngine.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/components/CalculatorEngine.tsx b/frontend/components/CalculatorEngine.tsx index cba0279..9ec1861 100644 --- a/frontend/components/CalculatorEngine.tsx +++ b/frontend/components/CalculatorEngine.tsx @@ -211,7 +211,8 @@ export default function CalculatorEngine({ if (config.fields.find((f) => f.id === key && f.type !== 'file' && f.type !== 'text')) { numValues[key] = toNum(values[key]); } else if (config.fields.find((f) => f.id === key && f.type === 'text')) { - numValues[key] = values[key] as any; // Для текстовых полей сохраняем строку + // Для текстовых полей сохраняем строку (но в numValues это не используется, только для consistency) + numValues[key] = 0; // Текстовые поля не участвуют в числовых расчетах } }); @@ -449,6 +450,7 @@ export default function CalculatorEngine({ /> {photoFile && ( + // eslint-disable-next-line @next/next/no-img-element