control flow branch for goalie input

This commit is contained in:
Jonathan Lamothe
2019-10-29 02:00:14 -04:00
parent c65bcbbca4
commit 28a29e2f64
2 changed files with 30 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ import Lens.Micro.Extras (view)
import qualified UI.NCurses as C
import Mtlstats.Actions
import Mtlstats.Control.GoalieInput
import Mtlstats.Format
import Mtlstats.Handlers
import Mtlstats.Menu
@@ -58,6 +59,7 @@ dispatch s = case s^.progMode of
| fromJust (unaccountedPoints gs) -> goalInput gs
| isJust $ gs^.selectedPlayer -> getPMinsC
| not $ gs^.pMinsRecorded -> pMinPlayerC
| not $ gs^.goaliesRecorded -> goalieInput gs
| otherwise -> reportC
CreatePlayer cps
| null $ cps^.cpsNumber -> getPlayerNumC