aboutsummaryrefslogtreecommitdiff
path: root/pages/index.js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-04-13 22:14:50 +0700
committerFactiven <[email protected]>2023-04-13 22:14:50 +0700
commit5007e48c8546d8138092039bf3cecc0b9904a407 (patch)
tree8b27c6fce4dcde5d21c04b65e1f2059924532cb4 /pages/index.js
parentUpdate index.js (diff)
downloadmoopa-5007e48c8546d8138092039bf3cecc0b9904a407.tar.xz
moopa-5007e48c8546d8138092039bf3cecc0b9904a407.zip
Update 4th
Diffstat (limited to 'pages/index.js')
-rw-r--r--pages/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/index.js b/pages/index.js
index 6740949..6c0ccb8 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.reverse());
+ setArray(data?.recentWatch);
setUser(data);
}
function fetchData() {
@@ -398,7 +398,7 @@ export default function Home({ detail, populars }) {
<Content
ids="recentlyWatched"
section="Recently Watched"
- data={array}
+ data={array.reverse()}
/>
</motion.div>
)}