fix: dismiss was visible on all library items

This commit is contained in:
kKaskak 2024-03-29 16:12:51 +02:00
parent 168534321e
commit 943091c9ce

View file

@ -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;
}