Don't re-render the video player when fileinfo has changed

This commit is contained in:
6ea86b96 2017-04-27 14:40:09 +07:00 committed by Jeremy Kauffman
parent f70e90877b
commit 3981ca8381

View file

@ -284,7 +284,7 @@ export function doWatchVideo() {
if (cost > balance) { if (cost > balance) {
dispatch(doOpenModal('notEnoughCredits')) dispatch(doOpenModal('notEnoughCredits'))
} }
else if (cost <= 0.01) { else if (cost <= 0.01 || fileInfo.written_bytes > 0) {
dispatch(doLoadVideo()) dispatch(doLoadVideo())
} else { } else {
dispatch(doOpenModal('affirmPurchase')) dispatch(doOpenModal('affirmPurchase'))