fix update form listener

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2022-11-21 14:26:54 -08:00
parent 123057f0f1
commit dd56207892

View File

@ -67,7 +67,7 @@ function setupUpdate(){
let updateBtn = document.getElementById("update-btn");
let currID = JSON.parse(sessionStorage.getItem("currID"));
let currReview = getReviewFromStorage(currID);
let form = document.getElementById("update-food-entry");
let form = document.getElementById("update-form");
let updateDiv = document.getElementById("update-form");
updateBtn.addEventListener("click", function(){
//update function