diff options
| author | Factiven <[email protected]> | 2023-04-13 22:25:07 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-13 22:25:07 +0700 |
| commit | c2ffcddc6eb98711556cea357c8935521a107f7b (patch) | |
| tree | e95c838dd47f95fdf1570c5b785129fdf8315205 | |
| parent | Update 4th (diff) | |
| download | moopa-c2ffcddc6eb98711556cea357c8935521a107f7b.tar.xz moopa-c2ffcddc6eb98711556cea357c8935521a107f7b.zip | |
Update index.js
| -rw-r--r-- | pages/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/index.js b/pages/index.js index 6c0ccb8..6740949 100644 --- a/pages/index.js +++ b/pages/index.js @@ -113,7 +113,7 @@ export default function Home({ detail, populars }) { if (!session) return; const res = await fetch(`/api/get-user?userName=${session?.user.name}`); const data = await res.json(); - setArray(data?.recentWatch); + setArray(data?.recentWatch.reverse()); setUser(data); } function fetchData() { @@ -398,7 +398,7 @@ export default function Home({ detail, populars }) { <Content ids="recentlyWatched" section="Recently Watched" - data={array.reverse()} + data={array} /> </motion.div> )} |