diff --git a/app/soapbox/reducers/soapbox.js b/app/soapbox/reducers/soapbox.js index a039accd5..c6101abdf 100644 --- a/app/soapbox/reducers/soapbox.js +++ b/app/soapbox/reducers/soapbox.js @@ -2,6 +2,7 @@ import { SOAPBOX_CONFIG_REQUEST_SUCCESS, SOAPBOX_CONFIG_REQUEST_FAIL, SOAPBOX_POST_SUCCESS, + SOAPBOX_POST_REQUEST, } from '../actions/soapbox'; import { Map as ImmutableMap, fromJS } from 'immutable'; @@ -17,9 +18,11 @@ export default function soapbox(state = initialState, action) { return defaultState.merge(ImmutableMap(fromJS(action.soapboxConfig))); case SOAPBOX_CONFIG_REQUEST_FAIL: return defaultState; + case SOAPBOX_POST_REQUEST: case SOAPBOX_POST_SUCCESS: - const soapbox = ImmutableMap(fromJS(action.soapboxConfig)).configs[0].value[0].tuple[1]; - return soapbox; + // const soapbox = ImmutableMap(fromJS(action.soapboxConfig)).configs[0].value[0].tuple[1]; + // return soapbox; + return defaultState; default: return state; }