From c03596bd89236f48a27200636ed3504b791e2327 Mon Sep 17 00:00:00 2001 From: Artur Rucinski <90777022+arturlg@users.noreply.github.com> Date: Tue, 5 Mar 2024 09:14:47 +0100 Subject: [PATCH] fix: declaration receipt high renumerations missing wording when non calculable (#2180) --- .../src/api/core-domain/infra/mail/templates.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/app/src/api/core-domain/infra/mail/templates.tsx b/packages/app/src/api/core-domain/infra/mail/templates.tsx index b77943b61..e0bb97fc3 100644 --- a/packages/app/src/api/core-domain/infra/mail/templates.tsx +++ b/packages/app/src/api/core-domain/infra/mail/templates.tsx @@ -203,7 +203,11 @@ ${ ? "non calculable" : declaration.maternityLeaves.score.getValue() }} -- indicateur hautes rémunérations: ${declaration.highRemunerations?.score.getValue()}} +- indicateur hautes rémunérations: ${ + declaration.highRemunerations?.score?.getValue() === undefined + ? "non calculable" + : declaration.highRemunerations.score.getValue() + }} Si vous souhaitez visualiser ou modifier votre déclaration, veuillez cliquer sur le lien suivant : @@ -275,7 +279,12 @@ Les services de l’administration du travail. ? "non calculable" : declaration.maternityLeaves.score.getValue()} -