Skip to content

Commit

Permalink
Merge pull request #620 from Stremio/fix-dismiss-visible-library
Browse files Browse the repository at this point in the history
fix: dismiss was visible on all library items
  • Loading branch information
tymmesyde authored Mar 29, 2024
2 parents 1685343 + 943091c commit d691d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/LibItem/LibItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d691d39

Please sign in to comment.