diff options
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/en/anime/recently-watched.js | 4 | ||||
| -rw-r--r-- | pages/en/index.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pages/en/anime/recently-watched.js b/pages/en/anime/recently-watched.js index 9d3b6cf..0b7a710 100644 --- a/pages/en/anime/recently-watched.js +++ b/pages/en/anime/recently-watched.js @@ -164,13 +164,15 @@ export default function PopularAnime({ sessions }) { </div> <div className="grid grid-cols-1 xs:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 2xl:grid-cols-4 gap-3 md:gap-7 pt-16"> {data - ?.filter((i) => i.title !== null) + ?.filter((i) => i?.watchId) .map((i) => { const time = i.timeWatched; const duration = i.duration; let prog = (time / duration) * 100; if (prog > 90) prog = 100; + console.log({ i }); + return ( <div key={i.watchId} diff --git a/pages/en/index.js b/pages/en/index.js index 5577fc4..acd3705 100644 --- a/pages/en/index.js +++ b/pages/en/index.js @@ -398,7 +398,7 @@ export default function Home({ detail, populars, upComing }) { animate={{ opacity: 1 }} transition={{ duration: 0.5, staggerChildren: 0.2 }} // Add staggerChildren prop > - {user?.length > 0 && ( + {user?.length > 0 && user?.some((i) => i?.watchId) && ( <motion.section // Add motion.div to each child component key="recentlyWatched" initial={{ y: 20, opacity: 0 }} |