Skip to content

Commit

Permalink
fix: renamed businessId to displayName (API nomenclature)
Browse files Browse the repository at this point in the history
  • Loading branch information
prwozny committed Oct 17, 2024
1 parent 645f8ce commit be22e1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/TableTracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ function SurveyUnitRow({ surveyUnit }: Readonly<SurveyUnitRowProps>) {
<TableCell align="center">
{isActive ? (
<Link to={`/survey-unit/${surveyUnit.id}/details`}>
#{surveyUnit.businessId ? surveyUnit.businessId : surveyUnit.id}
#{surveyUnit.displayName ? surveyUnit.displayName : surveyUnit.id}
</Link>
) : (
`#${surveyUnit.businessId ? surveyUnit.businessId : surveyUnit.id}`
`#${surveyUnit.displayName ? surveyUnit.displayName : surveyUnit.id}`
)}
</TableCell>
<TableCell align="center">
Expand Down
2 changes: 1 addition & 1 deletion src/types/pearl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ declare global {
};

type SurveyUnit = {
businessId?: string;
displayName?: string;
id: string;
persons: SurveyUnitPerson[];
address: SurveyUnitAddress;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/SurveyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function SurveyCard({ surveyUnit, locked = false }: Readonly<SurveyCardPr
{locked && <LockIcon color="iconLock" />}
</Row>
<Typography variant="s" color="textHint" as="div">
#{surveyUnit.businessId ? surveyUnit.businessId : surveyUnit.id}
#{surveyUnit.displayName ? surveyUnit.displayName : surveyUnit.id}
</Typography>
</Stack>
<Row gap={1}>
Expand Down

0 comments on commit be22e1d

Please sign in to comment.