diff --git a/src/pages/TableTracking.tsx b/src/pages/TableTracking.tsx index bcfe07d75..c20e825eb 100644 --- a/src/pages/TableTracking.tsx +++ b/src/pages/TableTracking.tsx @@ -240,10 +240,10 @@ function SurveyUnitRow({ surveyUnit }: Readonly) { {isActive ? ( - #{surveyUnit.businessId ? surveyUnit.businessId : surveyUnit.id} + #{surveyUnit.displayName ? surveyUnit.displayName : surveyUnit.id} ) : ( - `#${surveyUnit.businessId ? surveyUnit.businessId : surveyUnit.id}` + `#${surveyUnit.displayName ? surveyUnit.displayName : surveyUnit.id}` )} diff --git a/src/types/pearl.d.ts b/src/types/pearl.d.ts index 51e475e24..8b10701ec 100644 --- a/src/types/pearl.d.ts +++ b/src/types/pearl.d.ts @@ -95,7 +95,7 @@ declare global { }; type SurveyUnit = { - businessId?: string; + displayName?: string; id: string; persons: SurveyUnitPerson[]; address: SurveyUnitAddress; diff --git a/src/ui/SurveyCard.tsx b/src/ui/SurveyCard.tsx index 62c5da628..94b06b2cf 100644 --- a/src/ui/SurveyCard.tsx +++ b/src/ui/SurveyCard.tsx @@ -85,7 +85,7 @@ export function SurveyCard({ surveyUnit, locked = false }: Readonly} - #{surveyUnit.businessId ? surveyUnit.businessId : surveyUnit.id} + #{surveyUnit.displayName ? surveyUnit.displayName : surveyUnit.id}