Skip to content

Commit

Permalink
Don't show progress bar if progress is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
bennuttall committed Apr 20, 2020
1 parent 572f3dc commit 9f43f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TranscriptCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const TranscriptCard = props => {
<Col xs={ 12 }>
<Alert variant={ 'info' }>
<FontAwesomeIcon icon={ faExclamationTriangle } /> Do not move away from or refresh this page until upload is complete!
<ProgressBar progress={ props.progress } />
{typeof(props.progress) === 'number' ? <ProgressBar progress={ props.progress } /> : null}
</Alert>
<Badge variant={ 'info' }>In progress</Badge>
</Col>
Expand Down

0 comments on commit 9f43f24

Please sign in to comment.