fitness profile fix

This commit is contained in:
dimitar committed 2026-03-18 00:35:21 +01:00
1 parent 0776517fb7
commit 7f22a39886
3 files changed
+314 -216

No files matched your search

+7 -3
View File
@@ -96,9 +96,13 @@ export default function OnboardingScreen() {
const fitnessData = {
userId: user.id,
height: parseFloat(fitnessProfile.height),
weight: parseFloat(fitnessProfile.weight),
age: parseInt(fitnessProfile.age),
height: fitnessProfile.height
? parseFloat(fitnessProfile.height)
: undefined,
weight: fitnessProfile.weight
? parseFloat(fitnessProfile.weight)
: undefined,
age: fitnessProfile.age ? parseInt(fitnessProfile.age, 10) : undefined,
fitnessGoals: fitnessProfile.goals ? [fitnessProfile.goals] : [],
medicalConditions: fitnessProfile.medicalConditions || undefined,
allergies: fitnessProfile.dietaryRestrictions || undefined,