Skip to content

Commit

Permalink
fix(videodetail): fix NaN visible in continue watching button
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 24, 2021
1 parent 041a56b commit 81a4d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Video/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ const Video: React.FC<Props> = ({
active={play}
fullWidth
>
{progress && (
{progress ? (
<div className={styles.progressRail}>
<div className={styles.progress} style={{ width: `${progress * 100}%` }} />
</div>
)}
) : null}
</Button>
</div>
<div className={styles.otherButtons}>
Expand Down

0 comments on commit 81a4d58

Please sign in to comment.