Don't play video if you can't pay for it :(
This commit is contained in:
Baltazar Gomez 2017-09-30 20:50:32 -06:00 committed by GitHub
parent 72ad1552cb
commit 449997ff6e

View file

@ -351,6 +351,7 @@ export function doPurchaseUri(uri) {
const { cost } = costInfo; const { cost } = costInfo;
if (cost > balance) { if (cost > balance) {
dispatch(doSetPlayingUri(null));
dispatch(doOpenModal(modals.INSUFFICIENT_CREDITS)); dispatch(doOpenModal(modals.INSUFFICIENT_CREDITS));
return Promise.resolve(); return Promise.resolve();
} }