diff --git a/src/pages/share/[videoId].tsx b/src/pages/share/[videoId].tsx index 326fd83..6308314 100644 --- a/src/pages/share/[videoId].tsx +++ b/src/pages/share/[videoId].tsx @@ -10,7 +10,7 @@ const VideoList: NextPage = () => { const router = useRouter(); const { videoId } = router.query as { videoId: string }; - const { data: video } = api.video.get.useQuery( + const { data: video, isLoading } = api.video.get.useQuery( { videoId }, { enabled: router.isReady, @@ -18,7 +18,7 @@ const VideoList: NextPage = () => { } ); - if (!video?.success) { + if (!isLoading && !video?.success) { return (
@@ -40,7 +40,7 @@ const VideoList: NextPage = () => {
- Screenity | {video?.video?.title ?? ""} + Screenity
@@ -52,15 +52,20 @@ const VideoList: NextPage = () => {
-
- {video?.video?.video_url && ( - - )} +
+
+ {/*{true ? (*/} + {/*
*/} + {/*) : null}*/} + {video?.video?.video_url && ( + + )} +