From 5719ac32098a106a9f3d39db53e7573ccd496fb2 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 24 Oct 2025 14:20:55 +0200 Subject: [PATCH] Fix age input --- web/components/optional-profile-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/optional-profile-form.tsx b/web/components/optional-profile-form.tsx index 8aa48d17..6d3ccd8d 100644 --- a/web/components/optional-profile-form.tsx +++ b/web/components/optional-profile-form.tsx @@ -464,7 +464,7 @@ export const OptionalProfileUserForm = (props: { } }} className={'w-16'} - value={heightFeet ? Math.floor(heightFeet) : ''} + value={typeof heightFeet === 'number' ? Math.floor(heightFeet) : ''} /> @@ -481,7 +481,7 @@ export const OptionalProfileUserForm = (props: { } }} className={'w-16'} - value={heightInches ? Math.floor(heightInches) : ''} + value={typeof heightInches === 'number' ? Math.floor(heightInches) : ''} />
OR