From 9b4519be86f244cc94f4fa6c2f27e6092e1c7612 Mon Sep 17 00:00:00 2001 From: jzolo22 Date: Sat, 9 Jan 2021 19:36:47 -0500 Subject: [PATCH] clean up of code --- src/containers/TrailsList.js | 1 - src/index.js | 3 --- src/redux/actions.js | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/containers/TrailsList.js b/src/containers/TrailsList.js index 9d9e47f..fcde1b0 100644 --- a/src/containers/TrailsList.js +++ b/src/containers/TrailsList.js @@ -53,7 +53,6 @@ class TrailsList extends React.Component { let trail = this.props.trails.find(trail => trail.id === id) if (trail) { - console.log(this.props) return } else { return

Loading...

diff --git a/src/index.js b/src/index.js index 9275d65..b9bb544 100644 --- a/src/index.js +++ b/src/index.js @@ -13,9 +13,6 @@ import rootReducer from './redux/reducer' const store = createStore(rootReducer, applyMiddleware(thunk)) -console.log(store.getState()) - - ReactDOM.render( diff --git a/src/redux/actions.js b/src/redux/actions.js index abc14b0..f9eb6d9 100644 --- a/src/redux/actions.js +++ b/src/redux/actions.js @@ -43,7 +43,6 @@ export const loginUser = (userInfo) => { }) .then(r => r.json()) .then((userInfo) => { - console.log(userInfo) if(userInfo.message) { window.alert(userInfo.message) dispatch({type: "invalid user", payload: userInfo}) @@ -93,7 +92,6 @@ export const addUserTrail = (userTrailObj) => { }) .then(r => r.json()) .then((userTrailObj) => { - console.log(userTrailObj) dispatch({type: "add_user_trail", payload: userTrailObj}) })