fix viewedBar bug

This commit is contained in:
zeppi 2022-04-22 11:34:55 -04:00
parent a99f6d4bf2
commit d64da2a8b2

View file

@ -41,7 +41,7 @@ function FileThumbnail(props: Props) {
const hasResolvedClaim = claim !== undefined;
const isGif = thumbnail && thumbnail.endsWith('gif');
const viewedBar = showPercentage && watchedPercentage && (
const viewedBar = Boolean(showPercentage && watchedPercentage) && (
<div className="file-thumbnail__viewed-bar">
<div className="file-thumbnail__viewed-bar-progress" style={{ width: `${watchedPercentage}%` }} />
</div>