From 2c8fd3960f9d84ea2c2d57abff257d76800ee1b5 Mon Sep 17 00:00:00 2001 From: SepehrYahyaee <7heycallmegray@gmail.com> Date: Sat, 11 Jul 2026 11:25:42 +0330 Subject: [PATCH] YARA-957 --- src/helpers/claim-details-v2-owner-guidance.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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, }; } }