Merge pull request #620 from Stremio/fix-dismiss-visible-library

fix: dismiss was visible on all library items
This commit is contained in:
Tim 2024-03-29 15:18:45 +01:00 committed by GitHub
commit d691d391ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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