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),
@@ -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: "پایه یک",