From 7cc7c8d27b6ff319653f233519a3067dc9d91346 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 22 Sep 2025 11:06:52 +0200 Subject: [PATCH] Hide age, city and gender if null --- web/components/profile/profile-header.tsx | 2 +- web/components/profile/profile-primary-info.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/components/profile/profile-header.tsx b/web/components/profile/profile-header.tsx index 0407a5d4..1ac3344d 100644 --- a/web/components/profile/profile-header.tsx +++ b/web/components/profile/profile-header.tsx @@ -60,7 +60,7 @@ export default function ProfileHeader(props: { ) : ( {user.name} )} - , {profile.age} + {profile.age ? `, ${profile.age}` : ''} diff --git a/web/components/profile/profile-primary-info.tsx b/web/components/profile/profile-primary-info.tsx index 8efdf336..f578a209 100644 --- a/web/components/profile/profile-primary-info.tsx +++ b/web/components/profile/profile-primary-info.tsx @@ -17,16 +17,16 @@ export default function ProfilePrimaryInfo(props: { profile: Profile }) { : profile.country return ( - } - /> - } + {profile.gender && } - /> + />} {profile.height_in_inches != null && (