Skip to content

Commit

Permalink
minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
viviannnl committed Sep 17, 2023
1 parent 8abb8ed commit 157aace
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/features/goals/goalsSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const getGoals = createAsyncThunk ('goals/get', async (_,thunkAPI) => {

const user = thunkAPI.getState().auth.user
const token = user.token
console.log(token)
//console.log(token)

return await goalsService.getGoals(token)
} catch(error) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/habits/habitsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const API_URL = '/api/habits/'
const submitHabits = async (habitsData, token) => {
//const tokenData = JSON.parse(token)
//console.log(`Bearer ${token}`)
console.log(habitsData)
//console.log(habitsData)
const config = {
headers: {Authorization: `Bearer ${token}`}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/habits/habitsSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const submitHabits = createAsyncThunk ('habits/submit', async (habitsData
const user = thunkAPI.getState().auth.user
const token = user.token

console.log(habitsData)
//console.log(habitsData)

return await habitsService.submitHabits(habitsData, token)
} catch(error) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Habits.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Habits() {
walk: walk_day
}

console.log(habitsData)
//console.log(habitsData)
dispatch(submitHabits(habitsData))

}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Login() {
password
}

console.log(userData)
//console.log(userData)

dispatch(login(userData))
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Register() {
password,
location
}
console.log(userData ? userData : 'No user data')
//console.log(userData ? userData : 'No user data')
dispatch(register(userData))
}
}
Expand Down

0 comments on commit 157aace

Please sign in to comment.