tempIfElseAlert

This commit is contained in:
Kara Hoagland 2022-11-20 14:36:03 -08:00
parent dd3e0cfefb
commit 302af4bbd5

View File

@ -31,6 +31,7 @@ function initFormHandler() {
reviewObject[`${key}`] = `${value}`;
}
}
if(reviewObject["rating"] != null){
reviewObject["tags"] = [];
let tags = document.querySelectorAll(".tag");
@ -43,6 +44,9 @@ function initFormHandler() {
sessionStorage.setItem("currID", JSON.stringify(nextReviewId));
window.location.assign("./ReviewDetails.html");
} else{
window.alert("NO");
}
});