about summary refs log tree commit diff
path: root/app/javascript/mastodon/reducers/polls.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-06 05:35:52 +0100
committerGitHub <noreply@github.com>2019-03-06 05:35:52 +0100
commitfd128b9c7aa5c71adbfc2e223212514c0baee675 (patch)
treef88c6d60286250b7d77c1f545330eda2849cdd04 /app/javascript/mastodon/reducers/polls.js
parent57643557b64bc1853c4aeb65fc652dac3467fa18 (diff)
Fix poll options not rendering text after vote/refresh (#10189)
* Fix poll options not rendering text after vote/refresh

* Fix poll options not showing up on public pages

* Fix code style issue
Diffstat (limited to 'app/javascript/mastodon/reducers/polls.js')
-rw-r--r--app/javascript/mastodon/reducers/polls.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/javascript/mastodon/reducers/polls.js b/app/javascript/mastodon/reducers/polls.js
index 53d9b1d8c..9956cf83f 100644
--- a/app/javascript/mastodon/reducers/polls.js
+++ b/app/javascript/mastodon/reducers/polls.js
@@ -1,4 +1,3 @@
-import { POLL_VOTE_SUCCESS, POLL_FETCH_SUCCESS } from 'mastodon/actions/polls';
 import { POLLS_IMPORT } from 'mastodon/actions/importer';
 import { Map as ImmutableMap, fromJS } from 'immutable';
 
@@ -10,9 +9,6 @@ export default function polls(state = initialState, action) {
   switch(action.type) {
   case POLLS_IMPORT:
     return importPolls(state, action.polls);
-  case POLL_VOTE_SUCCESS:
-  case POLL_FETCH_SUCCESS:
-    return importPolls(state, [action.poll]);
   default:
     return state;
   }