diff --git a/app/components/home/index.tsx b/app/components/home/index.tsx index b6b7bce..b302781 100644 --- a/app/components/home/index.tsx +++ b/app/components/home/index.tsx @@ -61,32 +61,26 @@ export default function Home({ user }: { user: User }) { studentColles, classColles, favoriteColles, + upcomingClassColles, healthyUntil, lastSync, error, isLoading, } = useColles(startDate); - // Fetch upcoming colles from API - const { - classColles: upcomingClassColles, - error: upcomingError, - isLoading: upcomingIsLoading, - } = useColles(DateTime.now()); - // Error handling (after all hooks) - if (error || upcomingError) + if (error) return ( ); // TODO: FAVORITES - const useToggleStar = (auth: any) => {}; + const useToggleStar = (auth: any) => { }; // Filter state const rawSubject = query.get("subject");