mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-04 13:35:36 +05:00
anix: fetch recommended in discovery only if logged in
This commit is contained in:
parent
bf24cd1063
commit
3d08603bc3
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue