diff --git a/client/src/pages/Video.jsx b/client/src/pages/Video.jsx index bcb21189e3..9fd595cff7 100644 --- a/client/src/pages/Video.jsx +++ b/client/src/pages/Video.jsx @@ -138,6 +138,9 @@ const Video = () => { }; fetchData(); }, [path, dispatch]); + + if(!currentUser) return 'Loading....'; + const handleLike = async () => { await axios.put(`/users/like/${currentVideo._id}`);