fix(licence): validate driving licence IDs and preserve verified captions

This commit is contained in:
SepehrYahyaee
2026-10-03 15:08:16 +03:30
parent b20250b4b3
commit d9a8ec4b2f
11 changed files with 319 additions and 7 deletions
@@ -661,7 +661,7 @@ function buildParticipantRolesSection(
? `${PR.licenseType}: ${asString(
persianReportValue(
"participant.licenseType",
participant.licenseType,
participant.licenseTypeLabel ?? participant.licenseType,
),
)}`
: undefined,
@@ -725,7 +725,7 @@ function buildDriverSection(
asString(
persianReportValue(
"participant.licenseType",
licenseType ?? person.licenseType,
person.licenseTypeLabel ?? person.licenseType ?? licenseType,
),
) ??
(person.driverLicense ? PR.driverLicense : undefined),