fixed empty ballot problem
This commit is contained in:
parent
1683e8bf33
commit
59b849e7b0
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ vote pollId ballot = do
|
|||
"success! Here's the "
|
||||
with a_ [href_ (toPollIdLink pollId `T.append` "/results")] "results"
|
||||
where
|
||||
ballot' = B.Ballot . filter (== "") . B.options $ ballot
|
||||
ballot' = B.Ballot . filter (not . T.null) . B.options $ ballot
|
||||
|
||||
server :: ServerT A.RCVAPI AppM
|
||||
server = createPage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue