diff --git a/src/features/UserFavorites/hooks/index.tsx b/src/features/UserFavorites/hooks/index.tsx index 6b3b7a0a..6f2ec9d7 100644 --- a/src/features/UserFavorites/hooks/index.tsx +++ b/src/features/UserFavorites/hooks/index.tsx @@ -20,7 +20,11 @@ export const useUserFavorites = () => { } = useToggle() const fetchFavorites = useCallback(() => { - getUserFavorites().then(setUserFavorites) + getUserFavorites().then((value) => { + if (Array.isArray(value)) { + setUserFavorites(value) + } + }) }, []) const addRemoveFavorite = (args: Args) => {