don't mark goalies recorded unless at least one has been entered

This commit is contained in:
Jonathan Lamothe
2019-11-04 01:24:33 -05:00
parent b0cf9a83a1
commit 3f38160abd
3 changed files with 25 additions and 1 deletions

View File

@@ -338,7 +338,7 @@ goalieNamePrompt = strPrompt "Goalie name: " $
selectGameGoaliePrompt :: Prompt
selectGameGoaliePrompt = selectGoaliePrompt "Which goalie played this game: " $
\case
Nothing -> modify $ progMode.gameStateL.goaliesRecorded .~ True
Nothing -> modify finishGameGoalieEntry
Just n -> modify $ progMode.gameStateL.gameSelectedGoalie ?~ n
-- | Prompts for the number of minutes the goalie has played