From 8ebc42dd09e9270f1514a7813581f9a752cb6428 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 25 Sep 2026 19:18:23 +0300 Subject: [PATCH] =?UTF-8?q?fix(landing):=20=D1=81=D1=87=D1=91=D1=82=D1=87?= =?UTF-8?q?=D0=B8=D0=BA=20=D0=BF=D1=80=D0=BE=D0=B4=D1=83=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=BF=D0=BE=D0=B4=D0=BC=D0=B5=D0=BD=D1=8F=D0=B5=D1=82?= =?UTF-8?q?=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D1=87=D0=B8=D1=81?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=D1=83=D1=8E=20=D0=BF=D0=BB=D0=B0=D1=88=D0=BA?= =?UTF-8?q?=D1=83,=20=D0=B0=20=D0=BD=D0=B5=20=C2=ABAI=20=E2=80=94=20=D0=B2?= =?UTF-8?q?=20=D0=BA=D0=B0=D0=B6=D0=B4=D0=BE=D0=BC=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B4=D1=83=D0=BA=D1=82=D0=B5=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Landing.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Landing.tsx b/frontend/src/pages/Landing.tsx index 4991b03..58ea122 100644 --- a/frontend/src/pages/Landing.tsx +++ b/frontend/src/pages/Landing.tsx @@ -182,7 +182,8 @@ export function Landing() { {Array.isArray(hero?.stats) && hero.stats.length > 0 && (
{hero.stats.map((stat: any, idx: number) => { - const isProd = typeof stat.label === 'string' && stat.label.toUpperCase().includes('ПРОДУКТ'); + // Подменяем только счётчик продуктов (число), а не любую подпись со словом «продукт» + const isProd = typeof stat.label === 'string' && /^\d+$/.test(String(stat.value).trim()) && stat.label.toUpperCase().includes('ПРОДУКТ'); const value = isProd ? String(productCount) : stat.value; const label = isProd ? pluralProducts(productCount) : stat.label; return (