fix: pre-fill form with latest measurement values on focus
This commit is contained in:
parent
3d1263b713
commit
049473c696
2 changed files with 32 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue