@ -17,7 +17,7 @@ export function fetchMe() {
return (dispatch, getState) => {
const state = getState();
const me = state.getIn(['auth', 'me']);
const me = state.get('me') || state.getIn(['auth', 'me']);
const token = state.getIn(['auth', 'users', me, 'access_token']);
if (!token) {
@ -3,6 +3,6 @@ export const isLoggedIn = getState => {
};
export const getAccessToken = state => {
const me = state.get('me');
return state.getIn(['auth', 'users', me, 'access_token']);