forked from Yara724/api
fix(licence): validate driving licence IDs and preserve verified captions
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user