From 74617c9cbca62f3311653cbee27144a2cb90e1ba Mon Sep 17 00:00:00 2001 From: Alex Soloviev Date: Fri, 17 Nov 2023 09:26:02 -0700 Subject: [PATCH] ADO-153380: Legal status "No" returned empty age array (#950) --- utils/api/futureHandler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/api/futureHandler.ts b/utils/api/futureHandler.ts index d174aef79..583f535ef 100644 --- a/utils/api/futureHandler.ts +++ b/utils/api/futureHandler.ts @@ -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, }, })