From 69b337ed7c3844cf04a6bd1c0557ba598735f34e Mon Sep 17 00:00:00 2001 From: Ashm Walia Date: Sun, 31 Jan 2021 02:35:25 -0800 Subject: Fixed comments --- src/components/notifications/Notification.tsx | 4 ---- src/store/actions/user.ts | 1 - src/store/reducers/userReducer.ts | 1 - 3 files changed, 6 deletions(-) (limited to 'src') diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index e40153ea..d40c65ed 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -113,8 +113,6 @@ const Notification: React.FC = (props) => { comment_id = notification_object?.parent_comment?.comment_id; } - console.log('Problem'); - // Now find the moment we need to display let moment: MomentType | undefined = loggedInUserMoments?.find( (m) => m.moment_id === moment_id, @@ -128,7 +126,6 @@ const Notification: React.FC = (props) => { let moments: MomentType[] = []; try { if (!userXInStore(state, screenType, id)) { - console.log('Problem'); const token = await getTokenOrLogout(dispatch); moments = await loadMoments(id, token); } else { @@ -143,7 +140,6 @@ const Notification: React.FC = (props) => { userXId = id; } - console.log(moment); //Now if moment was found, navigate to the respective moment if (moment) { if (notification_object?.parent_comment) { diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts index af942592..5f49a103 100644 --- a/src/store/actions/user.ts +++ b/src/store/actions/user.ts @@ -118,7 +118,6 @@ export const updateReplyPosted = ( ): ThunkAction, RootState, unknown, Action> => async ( dispatch, ) => { - console.log(replyPosted); try { dispatch({ type: setReplyPosted.type, diff --git a/src/store/reducers/userReducer.ts b/src/store/reducers/userReducer.ts index 0ef739ac..1e575339 100644 --- a/src/store/reducers/userReducer.ts +++ b/src/store/reducers/userReducer.ts @@ -55,7 +55,6 @@ const userDataSlice = createSlice({ }, setReplyPosted: (state, action) => { - console.log(action.payload.replyPosted); state.replyPosted = action.payload.replyPosted; }, }, -- cgit v1.2.3-70-g09d2