diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 28ec0a5..aa44b26 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -62,8 +62,10 @@ const HomePage: React.FC = () => { !userToken && getAllDummyVideos().then((res) => { + if (res.isSuccess) { + setDummyVideos(res.result.videos); + } setRecentVideos([]); - setDummyVideos(res.result.videos); }); setIsSideBarOpen(false);