1
0
forked from Yara724/api

Fixed workflow step

This commit is contained in:
SepehrYahyaee
2026-06-23 11:03:06 +03:30
parent ed2b6948cf
commit e2b879d943
3 changed files with 188 additions and 7 deletions

View File

@@ -72,7 +72,12 @@ export function getClaimCaptureProgress(
}).length;
const partsTotal = selectedNorm.length;
const partsComplete = partsTotal === 0 || partsCaptured >= partsTotal;
const completedSteps: string[] = claimCase?.workflow?.completedSteps ?? [];
const outerPartsStepDone = completedSteps.includes("SELECT_OUTER_PARTS");
const partsComplete =
partsTotal > 0
? partsCaptured >= partsTotal
: outerPartsStepDone;
const anglesTotal = CLAIM_CAR_ANGLE_KEYS.length;
const anglesComplete = anglesCaptured >= anglesTotal;