Fix steps

This commit is contained in:
2026-05-01 17:52:25 +03:30
parent 0bb13f4596
commit 55ec6f1fd1
3 changed files with 105 additions and 5 deletions

View File

@@ -67,6 +67,7 @@ import {
import { resendRequestHasPayload } from "src/helpers/claim-expert-resend";
import {
getClaimCarAngleCaptureBlob,
getDamagedPartCaptureBlob,
type ClaimCarAngleKey,
} from "src/helpers/claim-car-angle-media";
import { snapshotFromDamageExpert } from "src/helpers/expert-profile-snapshot";
@@ -3306,7 +3307,9 @@ export class ExpertClaimService {
{ label_fa: string; captured: boolean; url?: string }
> = {};
for (const p of claim.damage?.selectedParts || []) {
const cap = hasCapture(damagedPartsData, p);
const cap = getDamagedPartCaptureBlob(damagedPartsData, p) as
| { url?: string; path?: string }
| undefined;
damagedParts[p] = {
label_fa: getPartLabelFa(p),
captured: !!cap,