From a252301ea0c6419afebc5727a9f731177fade56e Mon Sep 17 00:00:00 2001 From: ilnaz <237x237@gmail.com> Date: Mon, 3 Mar 2025 19:05:12 +0300 Subject: [PATCH] feat: add guard --- src/components/PriceCar/PriceCar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PriceCar/PriceCar.tsx b/src/components/PriceCar/PriceCar.tsx index 9ba40ac..c90360c 100644 --- a/src/components/PriceCar/PriceCar.tsx +++ b/src/components/PriceCar/PriceCar.tsx @@ -6,7 +6,7 @@ const PRICE_INCREASE_PERCENT_PER_RATING = 10; // 10% за каждый балл export const PriceCar = ({ image, rating }) => { const BASE_WASH_PRICE: number = Number( - getFeatures('dry-wash')['order-cost'].value, + getFeatures('dry-wash')['order-cost']?.value || 1000, ); const calculateWashPrice = (rating: number) => {