Fix bug regarding deleting games
parent
08545bfb5c
commit
d5be13955a
|
@ -51,7 +51,7 @@ router.post('/game', userLoggedIn, function(req, res, next) {
|
|||
const team2Score = req.body['team2-score'];
|
||||
|
||||
const id = req.body['game'];
|
||||
const remove = req.body['delete'];
|
||||
const remove = req.body['remove'];
|
||||
|
||||
if(remove) games.remove(id)
|
||||
.then(res.redirect("/manage"));
|
||||
|
|
Reference in New Issue