diff --git a/src/App.tsx b/src/App.tsx index 6e784b5..05f25bc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -30,7 +30,8 @@ function HabitTrackerContent() { addHabit: addHabitApi, toggleHabit, updateHabit, - deleteHabit + deleteHabit, + error } = useHabits(); const { @@ -88,26 +89,23 @@ function HabitTrackerContent() { const renderHabitsView = () => (
- Keep up the good work! Consistency is key. -
+ {loading ? ( ++ Keep up the good work! Consistency is key. +
+ > + )}