From dce0821b1a863feba4cb12e8b674ced43178b458 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 25 Feb 2026 14:31:20 +0100 Subject: [PATCH] Fixes want kids lavel in filters format --- common/src/searches.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/searches.ts b/common/src/searches.ts index d08c8adb..74ac75c7 100644 --- a/common/src/searches.ts +++ b/common/src/searches.ts @@ -1,4 +1,3 @@ -// Define nice labels for each key import { INVERTED_DIET_CHOICES, INVERTED_EDUCATION_CHOICES, @@ -131,9 +130,10 @@ export function formatFilters( let stringValue = value if (key === 'has_kids') stringValue = translate(`profile.has_kids.${value}`, hasKidsNames[value as number]) - else if (key === 'wants_kids_strength') + else if (key === 'wants_kids_strength') { + if (value === -1) return stringValue = translate(`profile.wants_kids_${value}`, wantsKidsNames[value as number]) - else if (key === 'is_smoker') + } else if (key === 'is_smoker') stringValue = translate( `profile.smoker.${value ? 'yes' : 'no'}`, value ? 'Smoker' : 'Non-smoker',