]> cat aescling's git repositories - mastodon.git/commitdiff
Fix stale reference
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 13 Nov 2016 18:44:19 +0000 (19:44 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 13 Nov 2016 18:44:19 +0000 (19:44 +0100)
app/assets/javascripts/components/reducers/accounts.jsx

index b20b3d0c57663db4d6618027a00159f97e546a20..c380a88f07a73e90390ccec94063cd04bd666c85 100644 (file)
@@ -6,7 +6,6 @@ import {
   ACCOUNT_TIMELINE_FETCH_SUCCESS,
   ACCOUNT_TIMELINE_EXPAND_SUCCESS
 } from '../actions/accounts';
-import { FOLLOW_SUBMIT_SUCCESS } from '../actions/follow';
 import { SUGGESTIONS_FETCH_SUCCESS } from '../actions/suggestions';
 import { COMPOSE_SUGGESTIONS_READY } from '../actions/compose';
 import {
@@ -63,7 +62,6 @@ export default function accounts(state = initialState, action) {
   switch(action.type) {
     case ACCOUNT_SET_SELF:
     case ACCOUNT_FETCH_SUCCESS:
-    case FOLLOW_SUBMIT_SUCCESS:
       return normalizeAccount(state, action.account);
     case SUGGESTIONS_FETCH_SUCCESS:
     case FOLLOWERS_FETCH_SUCCESS: