diff --git a/src/helpers/claim-details-v2-owner-guidance.ts b/src/helpers/claim-details-v2-owner-guidance.ts index 66c13eb..ba7ce96 100644 --- a/src/helpers/claim-details-v2-owner-guidance.ts +++ b/src/helpers/claim-details-v2-owner-guidance.ts @@ -263,8 +263,6 @@ export function buildClaimDetailsV2OwnerGuidance( shape.mixedFactorAndPrice && !claim.evaluation?.ownerPricedPartsApproval?.signedAt ) { - const ow = objectionWindowForOwner(claim); - const allowObj = ow.pricingEligible; return { phaseKey: "SIGN_PRICED_LINES", headline: "Sign acceptance of priced lines", @@ -278,13 +276,12 @@ export function buildClaimDetailsV2OwnerGuidance( "Multipart sign + agree + branchId", ), ], - objectionAllowed: allowObj, - objectionHint: objectionHintWhen(allowObj), + objectionAllowed, + objectionHint, }; } /** NEEDS_REVISION at INSURER_REVIEW without mixed gate — all-factor initial sign not used; fallback */ - const allowObj = objectionWindowForOwner(claim).pricingEligible; return { phaseKey: "INSURER_REVIEW_NEEDS_REVISION", headline: "Insurer approval — action pending", @@ -298,13 +295,12 @@ export function buildClaimDetailsV2OwnerGuidance( "Sign if prompted by app state", ), ], - objectionAllowed: allowObj, - objectionHint: objectionHintWhen(allowObj), + objectionAllowed, + objectionHint, }; } if (cs === ClaimStatus.APPROVED && !claim.evaluation?.ownerInsurerApproval?.signedAt) { - const allowObj = objectionWindowForOwner(claim).pricingEligible; return { phaseKey: "FINAL_SIGN_OR_REJECT", headline: "Accept or reject final pricing", @@ -323,8 +319,8 @@ export function buildClaimDetailsV2OwnerGuidance( "Dispute priced lines before signing", ), ], - objectionAllowed: allowObj, - objectionHint: objectionHintWhen(allowObj), + objectionAllowed, + objectionHint, }; } }