Skip to content

Commit

Permalink
show no progress if no media is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbuiter committed Feb 1, 2021
1 parent 33dc560 commit 933aa60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const GenerateMagnetModal: FC = () => {
)}

<FormRowItem width="seven-eighths">
<ProgressBar percent={(100 * currentTime) / duration} />
<ProgressBar percent={isMediaLoaded ? (100 * currentTime) / duration : 0} />
</FormRowItem>
</FormRow>
</Form>
Expand Down

0 comments on commit 933aa60

Please sign in to comment.