Fix bug regarding deleting games

main
sudoer777 2021-11-25 12:55:54 -07:00
parent 08545bfb5c
commit d5be13955a
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ router.post('/game', userLoggedIn, function(req, res, next) {
const team2Score = req.body['team2-score']; const team2Score = req.body['team2-score'];
const id = req.body['game']; const id = req.body['game'];
const remove = req.body['delete']; const remove = req.body['remove'];
if(remove) games.remove(id) if(remove) games.remove(id)
.then(res.redirect("/manage")); .then(res.redirect("/manage"));