Skip to content

Commit

Permalink
fix: fix toggleAllHabitsStatus test
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Broudoux <[email protected]>
  • Loading branch information
abroudoux committed Nov 16, 2024
1 parent 4bd2f11 commit d840184
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/habits.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ export async function toggleAllHabitsStatus(

const habitsUpdated: Habit[] = await response.json();

console.log("habitsUpdated from toggleAllHabitsStatus:", habitsUpdated);

return habits as Habit[];
return habitsUpdated as Habit[];
} catch (error: unknown) {
console.error("Error {toggleAllHabitsStatus}:", error instanceof Error ? error.message : error);
throw error instanceof Error ? error : new Error("An unexpected error occurred");
Expand Down

0 comments on commit d840184

Please sign in to comment.