Skip to content

Commit ba17b67

Browse files
Feat: UTH-212 Parking Spaces for Secret Identities (#92)
* Feat: UTH-212 Parking Spaces for Secret Identities A contact with secret identity should be able to rent an internal parking space. A contact with a secret identity doesn't have name or national security number set * Handle contacts without name --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d53db4b commit ba17b67

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/frontend/src/pages/ParkingSpace/components/Applicants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const getColumns = (listingId: number, address: string): Array<GridColDef> => {
175175
disabled={v.row.status !== ApplicantStatus.Active}
176176
listingId={listingId}
177177
applicantId={v.row.id}
178-
applicantName={v.row.name}
178+
applicantName={v.row.name ?? v.row.contactCode}
179179
listingAddress={address}
180180
/>
181181
)

packages/frontend/src/pages/ParkingSpace/components/OfferRound.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ const getColumns = (expiresAt: Date): Array<GridColDef> => {
156156
<OfferRoundActions
157157
disabled={v.row.status !== ApplicantStatus.Offered}
158158
listingId={v.row.listingId}
159-
applicantName={v.row.name}
159+
applicantName={
160+
v.row.name && v.row.name.length > -1
161+
? v.row.name
162+
: v.row.contactCode
163+
}
160164
offerId={v.row.offerId}
161165
/>
162166
)

0 commit comments

Comments
 (0)