aboutsummaryrefslogtreecommitdiff
path: root/components/watch/secondary/episodeLists.js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-09-26 23:35:35 +0700
committerFactiven <[email protected]>2023-09-26 23:35:35 +0700
commit20b8a7267827e3a07c1eef668c3b9c22fda43765 (patch)
tree2fec9006dfac5737d8b227bf5ccce73880800cc2 /components/watch/secondary/episodeLists.js
parentUpdate release.md (diff)
downloadmoopa-20b8a7267827e3a07c1eef668c3b9c22fda43765.tar.xz
moopa-20b8a7267827e3a07c1eef668c3b9c22fda43765.zip
Update v4.1.2v4.1.2
Diffstat (limited to 'components/watch/secondary/episodeLists.js')
-rw-r--r--components/watch/secondary/episodeLists.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/watch/secondary/episodeLists.js b/components/watch/secondary/episodeLists.js
index 8a057ce..5fa21ad 100644
--- a/components/watch/secondary/episodeLists.js
+++ b/components/watch/secondary/episodeLists.js
@@ -12,6 +12,7 @@ export default function EpisodeLists({
dub,
}) {
const progress = info.mediaListEntry?.progress;
+
return (
<div className="w-screen lg:max-w-sm xl:max-w-xl">
<h1 className="text-xl font-karla pl-5 pb-5 font-semibold">Up Next</h1>
@@ -67,11 +68,11 @@ export default function EpisodeLists({
className={`absolute bottom-0 left-0 h-[2px] bg-red-700`}
style={{
width:
- progress && artStorage && item?.number <= progress
+ progress !== undefined && progress >= item?.number
? "100%"
- : artStorage?.[item?.id]
+ : artStorage?.[item?.id] !== undefined
? `${prog}%`
- : "0",
+ : "0%",
}}
/>
<span className="absolute bottom-2 left-2 font-karla font-bold text-sm">