Skip to content

Commit

Permalink
ADO-153380: Legal status "No" returned empty age array (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-solo authored Nov 17, 2023
1 parent a1c35dc commit 74617c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/api/futureHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ export class FutureHandler {
client: { age, res: this.query.livedOnlyInCanada ? 40 : clientRes },
partner: {
age: partnerAge,
res: partnerOnlyCanada === 'true' || partnerAge < 60 ? 40 : partnerRes,
res:
partnerOnlyCanada === 'true' || partnerAge < 60
? 40
: partnerRes || 0,
},
})

Expand Down

0 comments on commit 74617c9

Please sign in to comment.