diff --git a/EditWeight.tsx b/EditWeight.tsx index d617aef..2b159d2 100644 --- a/EditWeight.tsx +++ b/EditWeight.tsx @@ -39,7 +39,7 @@ export default function EditWeight() { }, []) ); - const handleSubmit = async () => { + const submit = async () => { if (!value) return; const newWeight: Partial = { @@ -93,11 +93,11 @@ export default function EditWeight() { unitRef.current?.focus()} + onSubmitEditing={submit} /> {settings.showUnit && ( @@ -124,7 +124,7 @@ export default function EditWeight() { mode="outlined" icon="content-save" style={{ margin: MARGIN }} - onPress={handleSubmit} + onPress={submit} > Save