feat: add guard
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good

This commit is contained in:
Ильназ 2025-03-03 19:05:12 +03:00
parent 48cdfb92bd
commit a252301ea0

View File

@ -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) => {