Fix expert identity case search

This commit is contained in:
SepehrYahyaee
2026-09-27 14:40:29 +03:30
parent aaf0df1cc0
commit c7c7709f0f
4 changed files with 46 additions and 16 deletions
@@ -6636,12 +6636,16 @@ export class RequestManagementService {
nationalCode: entry?.person?.nationalCode,
nationalCodeOfInsurer: entry?.person?.nationalCodeOfInsurer,
nationalCodeOfDriver: entry?.person?.nationalCodeOfDriver,
inquiryParticipants: Array.isArray(entry?.inquiryParticipants)
? entry.inquiryParticipants.map((participant: any) => ({
phoneNumber: participant?.phoneNumber,
nationalCode: participant?.nationalCode,
}))
: undefined,
participants: (
Array.isArray(entry?.participants)
? entry.participants
: entry?.inquiryParticipants
)?.map((participant: any) => ({
phoneNumber: participant?.phoneNumber,
nationalCode: participant?.nationalCode,
nationalCodeOfInsurer: participant?.nationalCodeOfInsurer,
nationalCodeOfDriver: participant?.nationalCodeOfDriver,
})),
}))
: [];