From 0602415ba08ef4f09a8d09463fa498892fdd086d Mon Sep 17 00:00:00 2001 From: Nurs Date: Wed, 16 Sep 2026 12:04:26 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20async/await=20=D0=B2=20addEquipment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 18c9f3a..9b8b453 100644 --- a/script.js +++ b/script.js @@ -367,7 +367,7 @@ function updateCounts() { } } -function addEquipment(event) { +async function addEquipment(event) { event.preventDefault(); const form = event.target; const formData = new FormData(form); @@ -392,7 +392,7 @@ function addEquipment(event) { nextCheck: nextCheck, note: formData.get('note') || '' }; - saveEquipment(); + await saveEquipment(); updateAll(); resetForm(); switchTab('all'); @@ -415,7 +415,7 @@ function addEquipment(event) { }; equipment.push(newItem); - saveEquipment(); + await saveEquipment(); resetForm(); updateAll(); switchTab('all');