From 76b9913b09456966c013071b0da56d705447560d Mon Sep 17 00:00:00 2001 From: houseassassin Date: Sun, 10 May 2026 12:57:43 +0300 Subject: [PATCH] fix: estimator always shows price (no false loading state) --- src/components/Estimator.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Estimator.jsx b/src/components/Estimator.jsx index cfcd5c9..666e610 100644 --- a/src/components/Estimator.jsx +++ b/src/components/Estimator.jsx @@ -6,7 +6,7 @@ import { usePricing } from '../hooks/usePricing'; const Estimator = () => { const [area, setArea] = useState(20); const [thickness, setThickness] = useState(200); - const { prices, loading: pricesLoading } = usePricing(); + const { prices } = usePricing(); const costPerSqM = prices[thickness] ?? (thickness === 200 ? 2000 : 3000); const estimatedCost = area * costPerSqM; @@ -96,7 +96,7 @@ const Estimator = () => {

Ориентировочная стоимость

- {pricesLoading ? '...' : estimatedCost.toLocaleString('ru-RU')} ₽ + {estimatedCost.toLocaleString('ru-RU')} ₽

Включает бронематериалы, специализированный монтаж и финальную проверку.