flag inactive goalies in goalieName

This commit is contained in:
Jonathan Lamothe committed 2020-01-11 01:49:27 -05:00
1 parent 461fb5d942
commit 7923827d22
2 files changed
+15 -5

No files matched your search

+5 -1
View File
@@ -51,8 +51,12 @@ goalieDetails g = let
goalieName :: Goalie -> String
goalieName g = let
prefix = if g^.gActive
then ""
else "*"
suffix = if g^.gRookie
then "*"
else ""
in g^.gName ++ suffix
in prefix ++ g^.gName ++ suffix