Skip to content

Commit c03596b

Browse files
authored
fix: declaration receipt high renumerations missing wording when non calculable (#2180)
1 parent aa5ba06 commit c03596b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/app/src/api/core-domain/infra/mail/templates.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,11 @@ ${
203203
? "non calculable"
204204
: declaration.maternityLeaves.score.getValue()
205205
}}
206-
- indicateur hautes rémunérations: ${declaration.highRemunerations?.score.getValue()}}
206+
- indicateur hautes rémunérations: ${
207+
declaration.highRemunerations?.score?.getValue() === undefined
208+
? "non calculable"
209+
: declaration.highRemunerations.score.getValue()
210+
}}
207211
208212
Si vous souhaitez visualiser ou modifier votre déclaration, veuillez cliquer sur le lien suivant :
209213
@@ -275,7 +279,12 @@ Les services de l’administration du travail.
275279
? "non calculable"
276280
: declaration.maternityLeaves.score.getValue()}
277281
</li>
278-
<li>indicateur hautes rémunérations: {declaration.highRemunerations?.score.getValue()}</li>
282+
<li>
283+
indicateur hautes rémunérations:{" "}
284+
{declaration.highRemunerations?.score?.getValue() === undefined
285+
? "non calculable"
286+
: declaration.highRemunerations.score.getValue()}
287+
</li>
279288
</ul>
280289

281290
<p>

0 commit comments

Comments
 (0)