Fix ages in filters

This commit is contained in:
MartinBraquet
2025-09-16 22:09:43 +02:00
parent 7b2b9855f9
commit 41a606f5c1
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ export function formatFilters(filters: Partial<FilterFields>, location: location
let ageMin: number | undefined | null = filters.pref_age_min
if (ageMin == 18) ageMin = undefined
let ageMax = filters.pref_age_max;
if (ageMax == 99 || ageMax == 100) ageMax = undefined
if (ageMax == 100) ageMax = undefined
if (ageMin || ageMax) {
let text: string = 'Age: '
if (ageMin) text = `${text}${ageMin}`