diff options
Diffstat (limited to 'elm/Discussions/Poll.elm')
-rw-r--r-- | elm/Discussions/Poll.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Discussions/Poll.elm b/elm/Discussions/Poll.elm index 40037ba8..04761530 100644 --- a/elm/Discussions/Poll.elm +++ b/elm/Discussions/Poll.elm @@ -62,7 +62,7 @@ update msg model = if toomany model then (model, Cmd.none) else ( { model | state = Api.Loading } - , Api.post "/t/pollvote.json" (GDP.encode { tid = model.data.tid, options = List.filterMap (\o -> if o.my then Just o.id else Nothing) model.data.options }) Submitted + , GDP.send { tid = model.data.tid, options = List.filterMap (\o -> if o.my then Just o.id else Nothing) model.data.options } Submitted ) Submitted (GApi.Success) -> |