From 5b24d642bbc1b9dea066579bb11b4a6d0b1818c3 Mon Sep 17 00:00:00 2001 From: tristan Date: Thu, 7 May 2026 08:46:11 +0200 Subject: [PATCH] fix : label age bovin --- frontend/utils/bovine-age.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/utils/bovine-age.ts b/frontend/utils/bovine-age.ts index 2cad363..b400b37 100644 --- a/frontend/utils/bovine-age.ts +++ b/frontend/utils/bovine-age.ts @@ -4,7 +4,7 @@ export const formatAgeLabel = (months: number | null | undefined): string => { const remaining = months % 12 let label = '' if (years > 0) label = `${years} an${years > 1 ? 's' : ''}` - if (remaining > 0) label += `${label ? ' ' : ''}${remaining} mois` + if (remaining > 0) label += `${label ? ' ' : ''}${remaining} m` if (!label) label = '< 1 mois' return label }