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
onSubmit={(e) => {
onSubmit={async (e) => {
e.preventDefault();
setError(null);
const form = e.currentTarget;