Fix null linknder

This commit is contained in:
MartinBraquet
2026-03-29 19:55:54 +02:00
parent 0218f4e705
commit 9f1eaef30c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@compass/api",
"version": "1.29.1",
"version": "1.29.2",
"private": true,
"description": "Backend API endpoints",
"main": "src/serve.ts",

View File

@@ -181,7 +181,7 @@ export function getSeekingText(profile: Profile, t: any, short?: boolean | undef
const max = profile.pref_age_max
const seekingGenderText = stringOrStringArrayToText({
text:
prefGender?.length == 0 || (prefGender?.includes('male') && prefGender?.includes('female'))
!prefGender?.length || (prefGender?.includes('male') && prefGender?.includes('female'))
? [t('profile.gender.plural.people', 'people')]
: prefGender?.map((gender) =>
t(