diff --git a/app/components/Discovery/RecommendedCarousel.tsx b/app/components/Discovery/RecommendedCarousel.tsx index d1212d9..5fa2949 100644 --- a/app/components/Discovery/RecommendedCarousel.tsx +++ b/app/components/Discovery/RecommendedCarousel.tsx @@ -9,7 +9,7 @@ import useSWR from "swr"; export const RecommendedCarousel = () => { const token = useUserStore((state) => state.token); const { data, isLoading, error } = useSWR( - `${ENDPOINTS.discover.recommendations}/-1?previous_page=-1${token ? `&token=${token}` : ""}`, + token ? `${ENDPOINTS.discover.recommendations}/-1?previous_page=-1&token=${token}` : null, useSWRfetcher, { revalidateOnFocus: false,