[#FER-26] Passeport du bovin #53

Merged
tristan merged 8 commits from feat/vie-du-bovin into develop 2026-05-13 12:14:16 +00:00
Showing only changes of commit 5b24d642bb - Show all commits

View File

@@ -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
}