Skip to content

Commit

Permalink
Merge pull request #770 from DTS-STN/128426-gis-message
Browse files Browse the repository at this point in the history
128426 - GIS scenario 3
  • Loading branch information
MarcoGoC authored Jun 19, 2023
2 parents d91e3c4 + 0079a22 commit 4512cd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/api/benefitHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,12 +973,14 @@ export class BenefitHandler {
allResults.client.gis.entitlement.type = EntitlementResultType.FULL
}

// the push below prob can be moved to the else condition above but no time to test all scenarios
if (
(allResults.client.gis.eligibility.reason === ResultReason.NONE ||
allResults.client.gis.eligibility.reason ===
ResultReason.INCOME) &&
clientGis.entitlement.result > 0 &&
this.rawInput.partnerLegalStatus === LegalStatus.YES
(this.rawInput.partnerLegalStatus === LegalStatus.YES ||
this.rawInput.partnerLegalStatus === undefined)
) {
allResults.client.gis.cardDetail.collapsedText.push(
this.translations.detailWithHeading
Expand Down

0 comments on commit 4512cd9

Please sign in to comment.