Skip to content

Commit

Permalink
Merge pull request #28 from narainkarthikv/Develop
Browse files Browse the repository at this point in the history
feat(user-routine): updated the UserRoutine component
  • Loading branch information
narainkarthikv authored Sep 24, 2024
2 parents 565ce5b + 2246b85 commit cc23375
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/slices/userRoutineSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ export const updateTotalDays = (userID, updatedDayCheck) => async (dispatch, get

// Make the API call
await axios.post(url);

// Get the current state and calculate the new totalDays
const state = getState();
// const { dayCheck } = state.userRoutine;
console.log(state);

// Calculate the new totalDays based on updatedDayCheck
const totalDays = updatedDayCheck.filter(Boolean).length;
Expand Down

0 comments on commit cc23375

Please sign in to comment.