diff --git a/frontend/app/inventory/InventoryConsumeForm.tsx b/frontend/app/inventory/InventoryConsumeForm.tsx index 37b646be..727473f5 100644 --- a/frontend/app/inventory/InventoryConsumeForm.tsx +++ b/frontend/app/inventory/InventoryConsumeForm.tsx @@ -36,7 +36,7 @@ export default function InventoryConsumeForm({ id, unit }: Props) { }} >
{ + onSubmit={async (e) => { e.preventDefault(); setError(null); const form = e.currentTarget; diff --git a/frontend/app/inventory/InventoryEditForm.tsx b/frontend/app/inventory/InventoryEditForm.tsx index 70aa3d4a..ff52faa7 100644 --- a/frontend/app/inventory/InventoryEditForm.tsx +++ b/frontend/app/inventory/InventoryEditForm.tsx @@ -72,7 +72,7 @@ export default function InventoryEditForm({ item }: Props) { }} > { + onSubmit={async (e) => { e.preventDefault(); setError(null); const form = e.currentTarget;