feat(inventory): update form submission to use async function in InventoryConsumeForm and InventoryEditForm

This commit is contained in:
Nils-Johan Gynther
2026-04-19 19:12:05 +02:00
parent 6f24aee18d
commit 151a7e335d
2 changed files with 2 additions and 2 deletions
@@ -36,7 +36,7 @@ export default function InventoryConsumeForm({ id, unit }: Props) {
}} }}
> >
<form <form
onSubmit={(e) => { onSubmit={async (e) => {
e.preventDefault(); e.preventDefault();
setError(null); setError(null);
const form = e.currentTarget; const form = e.currentTarget;
+1 -1
View File
@@ -72,7 +72,7 @@ export default function InventoryEditForm({ item }: Props) {
}} }}
> >
<form <form
onSubmit={(e) => { onSubmit={async (e) => {
e.preventDefault(); e.preventDefault();
setError(null); setError(null);
const form = e.currentTarget; const form = e.currentTarget;