diff options
| author | Factiven <[email protected]> | 2023-09-13 18:24:50 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-13 18:24:50 +0700 |
| commit | 195ffb79c013225cf65e8b89b1f2be0b34adb2f6 (patch) | |
| tree | 97e2b2dc201955bf716ef4bf5011344270fcc3d1 /pages | |
| parent | Update v4 - Merge pre-push to main (#71) (diff) | |
| download | moopa-195ffb79c013225cf65e8b89b1f2be0b34adb2f6.tar.xz moopa-195ffb79c013225cf65e8b89b1f2be0b34adb2f6.zip | |
Update v4.0.1 - Merge pre-push to main (#73)v4.0.1
* Create build-test.yml
* initial v4 commit
* update: github workflow
* update: push on branch
* Update .github/ISSUE_TEMPLATE/bug_report.md
* configuring next.config.js file
* Update v4.0.1
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 }} |