diff --git a/packages/app/src/common/core-domain/mappers/declarationMap.ts b/packages/app/src/common/core-domain/mappers/declarationMap.ts index 9fba0af2b..688e718bb 100644 --- a/packages/app/src/common/core-domain/mappers/declarationMap.ts +++ b/packages/app/src/common/core-domain/mappers/declarationMap.ts @@ -265,10 +265,10 @@ export const declarationMap: Required ({ nom: category.name || "", tranches: { - [AgeRange.Enum.LESS_THAN_30]: category.ranges?.[":29"]?.getValue() || "", - [AgeRange.Enum.FROM_30_TO_39]: category.ranges?.["30:39"]?.getValue() || "", - [AgeRange.Enum.FROM_40_TO_49]: category.ranges?.["40:49"]?.getValue() || "", - [AgeRange.Enum.FROM_50_TO_MORE]: category.ranges?.["50:"]?.getValue() || "", + [AgeRange.Enum.LESS_THAN_30]: category.ranges?.[":29"]?.getValue() ?? "", + [AgeRange.Enum.FROM_30_TO_39]: category.ranges?.["30:39"]?.getValue() ?? "", + [AgeRange.Enum.FROM_40_TO_49]: category.ranges?.["40:49"]?.getValue() ?? "", + [AgeRange.Enum.FROM_50_TO_MORE]: category.ranges?.["50:"]?.getValue() ?? "", }, })), }; @@ -378,10 +378,10 @@ export const declarationMap: Required ({ nom: category.name || "", tranches: { - [AgeRange.Enum.LESS_THAN_30]: category.ranges?.[":29"]?.getValue() || "", - [AgeRange.Enum.FROM_30_TO_39]: category.ranges?.["30:39"]?.getValue() || "", - [AgeRange.Enum.FROM_40_TO_49]: category.ranges?.["40:49"]?.getValue() || "", - [AgeRange.Enum.FROM_50_TO_MORE]: category.ranges?.["50:"]?.getValue() || "", + [AgeRange.Enum.LESS_THAN_30]: category.ranges?.[":29"]?.getValue() ?? "", + [AgeRange.Enum.FROM_30_TO_39]: category.ranges?.["30:39"]?.getValue() ?? "", + [AgeRange.Enum.FROM_40_TO_49]: category.ranges?.["40:49"]?.getValue() ?? "", + [AgeRange.Enum.FROM_50_TO_MORE]: category.ranges?.["50:"]?.getValue() ?? "", }, })), };