formatting

This commit is contained in:
Sean Yesmunt 2019-06-04 14:33:05 -04:00
parent e27e311756
commit d91ce26655

View file

@ -156,7 +156,9 @@ class MediaPlayer extends React.PureComponent<Props, State> {
// Render custom viewer: FileRender
if (this.isSupportedFile()) {
downloadCompleted && this.renderFile();
if (downloadCompleted) {
this.renderFile();
}
} else {
// Render default viewer: render-media (video, audio, img, iframe)
const currentMediaContainer = this.mediaContainer.current;