User reports on /legacy/site-finder/[cad]: Велосити 0.0 м²/мес · Срок продаж — which is contradictory — if velocity were truly zero, sales period would be infinity. Root cause: backend returns 0 (not null) when competitors are unmapped to Objective ground truth (OBJ-3). The condition for 'unavailable' must catch both null and zero. Fix: getSalesPeriodMonths already treats velocitySqm <= 0 as null (line 41), but the HeadlineBar + KPI card read raw velocity and display '0.0 м²/мес' for zero. Same coercion applied at the source: velocityPerMonth = (raw != null && raw > 0) ? raw : null. Both HeadlineBar and KPI card now show '—' for zero velocity, matching the '—' shown for Срок продаж. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .eslintrc.json | ||
| Dockerfile | ||
| next-env.d.ts | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| sentry.client.config.ts | ||
| sentry.edge.config.ts | ||
| sentry.server.config.ts | ||
| tsconfig.json | ||