Skip to content

Commit

Permalink
clean up of code
Browse files Browse the repository at this point in the history
  • Loading branch information
jzolo22 committed Jan 10, 2021
1 parent 853b546 commit 9b4519b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/containers/TrailsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <TrailShow trailObj={trail} currentUser={this.props.user}/>
} else {
return <h2>Loading...</h2>
Expand Down
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import rootReducer from './redux/reducer'

const store = createStore(rootReducer, applyMiddleware(thunk))

console.log(store.getState())


ReactDOM.render(
<Provider store={store}>
<BrowserRouter>
Expand Down
2 changes: 0 additions & 2 deletions src/redux/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -93,7 +92,6 @@ export const addUserTrail = (userTrailObj) => {
})
.then(r => r.json())
.then((userTrailObj) => {
console.log(userTrailObj)
dispatch({type: "add_user_trail", payload: userTrailObj})
})

Expand Down

0 comments on commit 9b4519b

Please sign in to comment.