From 8b4c32b81fca97e898c55ac6d9ac3d41f08a250e Mon Sep 17 00:00:00 2001 From: Aditya Sankaran Date: Wed, 4 Dec 2019 18:20:28 -0500 Subject: [PATCH] syntax error --- twistter-frontend/src/redux/actions/userActions.js | 5 ----- twistter-frontend/src/redux/reducers/userReducer.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/twistter-frontend/src/redux/actions/userActions.js b/twistter-frontend/src/redux/actions/userActions.js index 88fc03c..ff1366d 100644 --- a/twistter-frontend/src/redux/actions/userActions.js +++ b/twistter-frontend/src/redux/actions/userActions.js @@ -155,11 +155,6 @@ export const unlikePost = (postId, postArray) => (dispatch) => { } -const setAuthorizationHeader = (token) => { - const FBIdToken = `Bearer ${token}`; - localStorage.setItem('FBIdToken', FBIdToken); - axios.defaults.headers.common['Authorization'] = FBIdToken; -} // Sends an image data form to firebase to be uploaded to the user profile export const uploadImage = (formData) => (dispatch) => { dispatch({ type: LOADING_UI }); diff --git a/twistter-frontend/src/redux/reducers/userReducer.js b/twistter-frontend/src/redux/reducers/userReducer.js index 3b2d84f..74f8aaf 100644 --- a/twistter-frontend/src/redux/reducers/userReducer.js +++ b/twistter-frontend/src/redux/reducers/userReducer.js @@ -51,7 +51,7 @@ export default function(state = initialState, action) { return { ...state, ...action.payload - + } case LOADING_USER: return { ...state,