diff --git a/src/app/user/[userId]/page.tsx b/src/app/user/[userId]/page.tsx index c2e3a5b..f090f04 100644 --- a/src/app/user/[userId]/page.tsx +++ b/src/app/user/[userId]/page.tsx @@ -30,7 +30,7 @@ import { Profile, getProfile, isProfile } from "@/services/profileService"; import useProfileModal from "@/hooks/modal/use-profile-modal"; import { useUser } from "@/provider/userProvider"; -export default async function UserPage() { +export default function UserPage() { const streamingBar = useStreamingBar(); const profileModal = useProfileModal(); const isMobile = useMediaQuery({ maxWidth: 768 }); diff --git a/src/app/watch/[watchId]/page.tsx b/src/app/watch/[watchId]/page.tsx index 64718ff..ec56e39 100644 --- a/src/app/watch/[watchId]/page.tsx +++ b/src/app/watch/[watchId]/page.tsx @@ -40,7 +40,7 @@ export default function WatchPage() { useEffect(() => { checkResize(); - }, [isMobile]); + }, []); const [view, setView] = useState("nowPlaying"); const router = useRouter();