Fix production build errors

This commit is contained in:
DosAi 2025-11-02 15:55:21 +03:00
parent 02c7520c90
commit 8d5ecd401d

View File

@ -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({
/>
</label>
{photoFile && (
// eslint-disable-next-line @next/next/no-img-element
<img
src={URL.createObjectURL(photoFile)}
alt="Предпросмотр"