Commit 1111868e authored by Rolf Aas's avatar Rolf Aas
Browse files

Removed redundant use of await

parent 5c6c2087
......@@ -132,8 +132,8 @@ window.addEventListener("DOMContentLoaded", async () => {
await retrieveMealtype(mealtypeId);
editButton.addEventListener("click", handleEditMealtypeButtonClick);
deleteButton.addEventListener("click", (async (id) => await deleteMealtype(id)).bind(undefined, mealtypeId));
okButton.addEventListener("click", (async (id) => await updateMealtype(id)).bind(undefined, mealtypeId));
deleteButton.addEventListener("click", (async (id) => deleteMealtype(id)).bind(undefined, mealtypeId));
okButton.addEventListener("click", (async (id) => updateMealtype(id)).bind(undefined, mealtypeId));
}
//create
else {
......@@ -143,7 +143,7 @@ window.addEventListener("DOMContentLoaded", async () => {
okButton.className = okButton.className.replace(" hide", "");
cancelButton.className = cancelButton.className.replace(" hide", "");
okButton.addEventListener("click", async () => await createMealtype());
okButton.addEventListener("click", async () => createMealtype());
cancelButton.addEventListener("click", handleCancelButtonDuringCreate);
}
});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment