diff --git a/frontend/src/components/site-finder/VelocityBlock.tsx b/frontend/src/components/site-finder/VelocityBlock.tsx index 268f8587..d38f628b 100644 --- a/frontend/src/components/site-finder/VelocityBlock.tsx +++ b/frontend/src/components/site-finder/VelocityBlock.tsx @@ -177,7 +177,7 @@ export function VelocityBlock({ velocity }: VelocityBlockProps) { > {c.name ?? `obj#${c.obj_id}`} - {c.class && ( + {c.obj_class && ( - {c.class} + {c.obj_class} )} @@ -205,7 +205,7 @@ export function VelocityBlock({ velocity }: VelocityBlockProps) { fontWeight: 500, }} > - {Math.round(c.total_sqm).toLocaleString("ru")} + {Math.round(c.total_sqm_period).toLocaleString("ru")} ))} diff --git a/frontend/src/types/site-finder.ts b/frontend/src/types/site-finder.ts index 7245c602..b43c5aeb 100644 --- a/frontend/src/types/site-finder.ts +++ b/frontend/src/types/site-finder.ts @@ -208,9 +208,11 @@ export interface Pipeline24mo { export interface VelocityCompetitor { obj_id: number; name: string | null; - class: string | null; + obj_class: string | null; distance_m: number; - total_sqm: number; + total_sqm_period: number; + dev_name?: string | null; + district_name?: string | null; } export interface VelocityPeriod {