only search through active players/goalies on game input

This commit is contained in:
Jonathan Lamothe
2020-04-06 15:14:48 -04:00
parent 4f147cd5a4
commit ed240c6a38
2 changed files with 5 additions and 4 deletions

View File

@@ -36,7 +36,8 @@ import Mtlstats.Types
-- | Prompts for a goalie who played in the game
selectGameGoaliePrompt :: Prompt
selectGameGoaliePrompt = selectGoaliePrompt "Which goalie played this game: " $
selectGameGoaliePrompt = selectActiveGoaliePrompt
"Which goalie played this game: " $
\case
Nothing -> modify finishGoalieEntry
Just n -> modify $ progMode.gameStateL.gameSelectedGoalie ?~ n