here's -> here are the results
This commit is contained in:
parent
357c6fb48d
commit
dfef7d4935
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ vote pollId ballot = do
|
||||||
db <- Rd.asks db
|
db <- Rd.asks db
|
||||||
liftIO $ Ac.update db (DB.PostBallot pollId ballot')
|
liftIO $ Ac.update db (DB.PostBallot pollId ballot')
|
||||||
pure $ with div_ [id_ "resultLink"] $ do
|
pure $ with div_ [id_ "resultLink"] $ do
|
||||||
"success! Here's the "
|
"success! Here are 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 (not . T.null) . B.options $ ballot
|
ballot' = B.Ballot . filter (not . T.null) . B.options $ ballot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue