Fix bug regarding deleting games
This commit is contained in:
		
							parent
							
								
									08545bfb5c
								
							
						
					
					
						commit
						d5be13955a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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 a new issue