From 943091c9ce7a29628fd81e011c6f0ec34fc2eefe Mon Sep 17 00:00:00 2001 From: kKaskak <117831817+kKaskak@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:12:51 +0200 Subject: [PATCH] fix: dismiss was visible on all library items --- src/common/LibItem/LibItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/LibItem/LibItem.js b/src/common/LibItem/LibItem.js index 1afd76bab..141450a57 100644 --- a/src/common/LibItem/LibItem.js +++ b/src/common/LibItem/LibItem.js @@ -31,7 +31,7 @@ const LibItem = ({ _id, removable, notifications, watched, ...props }) => { case 'watched': return props.deepLinks && (typeof props.deepLinks.metaDetailsVideos === 'string' || typeof props.deepLinks.metaDetailsStreams === 'string'); case 'dismiss': - return typeof _id === 'string' && props.progress !== null && !isNaN(props.progress); + return typeof _id === 'string' && props.progress !== null && !isNaN(props.progress) && props.progress > 0; case 'remove': return typeof _id === 'string' && removable; }