fixed empty ballot problem

This commit is contained in:
Jack Wines 2023-06-16 22:12:21 -07:00
parent 1683e8bf33
commit 59b849e7b0

View file

@ -120,7 +120,7 @@ vote pollId ballot = do
"success! Here's the " "success! Here's the "
with a_ [href_ (toPollIdLink pollId `T.append` "/results")] "results" with a_ [href_ (toPollIdLink pollId `T.append` "/results")] "results"
where where
ballot' = B.Ballot . filter (== "") . B.options $ ballot ballot' = B.Ballot . filter (not . T.null) . B.options $ ballot
server :: ServerT A.RCVAPI AppM server :: ServerT A.RCVAPI AppM
server = createPage server = createPage