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),
|
||||
|
||||
@@ -291,9 +291,6 @@ const INQUIRY_ERROR_LABELS: Record<string, string> = {
|
||||
};
|
||||
|
||||
const LICENSE_TYPE_LABELS: Record<string, string> = {
|
||||
"1": "پایه یک",
|
||||
"2": "پایه دو",
|
||||
"3": "پایه سه",
|
||||
BASE_1: "پایه یک",
|
||||
BASE1: "پایه یک",
|
||||
GRADE_1: "پایه یک",
|
||||
|
||||
Reference in New Issue
Block a user