mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-31 03:46:50 +00:00 
			
		
		
		
	Merge pull request #80 from cse110-fa22-group29/req-stars-fix
Req stars fix
This commit is contained in:
		| @@ -71,6 +71,7 @@ function initFormHandler() { | |||||||
| 				reviewObject["mealImg"] = imgDataURL; | 				reviewObject["mealImg"] = imgDataURL; | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | 		if(reviewObject["rating"] != null){ | ||||||
| 			reviewObject["tags"] = []; | 			reviewObject["tags"] = []; | ||||||
|  |  | ||||||
| 			let tags = document.querySelectorAll(".tag"); | 			let tags = document.querySelectorAll(".tag"); | ||||||
| @@ -83,6 +84,9 @@ function initFormHandler() { | |||||||
| 			sessionStorage.setItem("currID", JSON.stringify(nextReviewId)); | 			sessionStorage.setItem("currID", JSON.stringify(nextReviewId)); | ||||||
|  |  | ||||||
| 			window.location.assign("./ReviewDetails.html"); | 			window.location.assign("./ReviewDetails.html"); | ||||||
|  | 		} else{ | ||||||
|  | 			window.alert("NO! FILL IN STARS"); | ||||||
|  | 		} | ||||||
|          |          | ||||||
| 	}); | 	}); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user