From 157aaceb265fc11d0abcaf003f9bb90c88e1867c Mon Sep 17 00:00:00 2001 From: Vivian Li Date: Sat, 16 Sep 2023 20:55:29 -0400 Subject: [PATCH] minor corrections --- frontend/src/features/goals/goalsSlice.js | 2 +- frontend/src/features/habits/habitsService.js | 2 +- frontend/src/features/habits/habitsSlice.js | 2 +- frontend/src/pages/Habits.jsx | 2 +- frontend/src/pages/Login.jsx | 2 +- frontend/src/pages/Register.jsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/features/goals/goalsSlice.js b/frontend/src/features/goals/goalsSlice.js index 183085b..c21df41 100644 --- a/frontend/src/features/goals/goalsSlice.js +++ b/frontend/src/features/goals/goalsSlice.js @@ -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) { diff --git a/frontend/src/features/habits/habitsService.js b/frontend/src/features/habits/habitsService.js index 6c66b2b..8090167 100644 --- a/frontend/src/features/habits/habitsService.js +++ b/frontend/src/features/habits/habitsService.js @@ -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}`} } diff --git a/frontend/src/features/habits/habitsSlice.js b/frontend/src/features/habits/habitsSlice.js index 4b918aa..e9263cf 100644 --- a/frontend/src/features/habits/habitsSlice.js +++ b/frontend/src/features/habits/habitsSlice.js @@ -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) { diff --git a/frontend/src/pages/Habits.jsx b/frontend/src/pages/Habits.jsx index 1c6dc64..7c934b4 100644 --- a/frontend/src/pages/Habits.jsx +++ b/frontend/src/pages/Habits.jsx @@ -49,7 +49,7 @@ function Habits() { walk: walk_day } - console.log(habitsData) + //console.log(habitsData) dispatch(submitHabits(habitsData)) } diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx index 7d88ba9..eb405b7 100644 --- a/frontend/src/pages/Login.jsx +++ b/frontend/src/pages/Login.jsx @@ -41,7 +41,7 @@ function Login() { password } - console.log(userData) + //console.log(userData) dispatch(login(userData)) } diff --git a/frontend/src/pages/Register.jsx b/frontend/src/pages/Register.jsx index bd016d8..02753cd 100644 --- a/frontend/src/pages/Register.jsx +++ b/frontend/src/pages/Register.jsx @@ -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)) } }