fix viewedBar bug
This commit is contained in:
parent
a99f6d4bf2
commit
d64da2a8b2
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue