fix: pre-fill form with latest measurement values on focus

This commit is contained in:
Eddy de Vink 2026-06-27 23:31:00 +02:00
commit 049473c696
2 changed files with 32 additions and 19 deletions

View file

@ -45,6 +45,8 @@ export default function MeasurementForm({ onSubmit, initialValues }: Props) {
return init
})
const weight = parseFloat(values.weight) || 0
const bodyFatPct = parseFloat(values.bodyFatPercentage) || 0
const musclePct = parseFloat(values.musclePercentage) || 0