From c40fb925e9be873b41dd3edf67e107a2658dd3fc Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 17 Apr 2020 16:10:55 -0500 Subject: [PATCH] Refactor 'me' reducer --- app/gabsocial/reducers/me.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/gabsocial/reducers/me.js b/app/gabsocial/reducers/me.js index fff385be5..c83b0c585 100644 --- a/app/gabsocial/reducers/me.js +++ b/app/gabsocial/reducers/me.js @@ -1,13 +1,12 @@ import { ME_FETCH_SUCCESS, ME_FETCH_FAIL, ME_FETCH_SKIP } from '../actions/me'; import { AUTH_LOGGED_OUT } from '../actions/auth'; -import { fromJS } from 'immutable'; const initialState = null; export default function me(state = initialState, action) { switch(action.type) { case ME_FETCH_SUCCESS: - return fromJS(action.me.id); + return action.me.id; case ME_FETCH_FAIL: return false; case ME_FETCH_SKIP: