whoops, gotta filter empty votes
This commit is contained in:
parent
69d5795eed
commit
a701465d89
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ results pollId = do
|
|||
noVotesAsBallot notVotedFor' = if S.null notVotedFor' then [] else [notVotedFor']
|
||||
|
||||
toNonEmptyList :: [B.Ballot] -> Maybe (LN.NonEmpty (LN.NonEmpty T.Text))
|
||||
toNonEmptyList = LN.nonEmpty . My.mapMaybe (LN.nonEmpty . B.options)
|
||||
toNonEmptyList = LN.nonEmpty . My.mapMaybe (LN.nonEmpty . filter (not . T.null) . B.options)
|
||||
|
||||
nthPlaceFor :: S.Set T.Text -> L.Html () -> L.Html ()
|
||||
nthPlaceFor options place = do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue