do not block play button on cost info

This commit is contained in:
Jeremy Kauffman 2017-07-30 15:57:22 -04:00
parent 8acccafe19
commit 64bebd9321

View file

@ -47,7 +47,6 @@ class VideoPlayButton extends React.PureComponent {
modal,
closeModal,
isLoading,
costInfo,
fileInfo,
mediaType,
} = this.props;
@ -60,10 +59,7 @@ class VideoPlayButton extends React.PureComponent {
}
*/
const disabled =
isLoading ||
fileInfo === undefined ||
(fileInfo === null && (!costInfo || costInfo.cost === undefined));
const disabled = isLoading || fileInfo === undefined;
const icon = ["audio", "video"].indexOf(mediaType) !== -1
? "icon-play"
: "icon-folder-o";