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 (