Fix purchase confirmation logic

Closes #4057
This commit is contained in:
Jeffrey Fisher 2020-04-24 15:22:33 -07:00 committed by Sean Yesmunt
parent f6a9d629a5
commit 65f4562937

View file

@ -197,7 +197,8 @@ export function doPlayUri(
return; return;
} }
if (instantPurchaseEnabled || instantPurchaseMax.currency === 'LBC') { if (instantPurchaseEnabled) {
if (instantPurchaseMax.currency === 'LBC') {
attemptPlay(instantPurchaseMax.amount); attemptPlay(instantPurchaseMax.amount);
} else { } else {
// Need to convert currency of instant purchase maximum before trying to play // Need to convert currency of instant purchase maximum before trying to play
@ -205,6 +206,9 @@ export function doPlayUri(
attemptPlay(instantPurchaseMax.amount / LBC_USD); attemptPlay(instantPurchaseMax.amount / LBC_USD);
}); });
} }
} else {
attemptPlay();
}
}; };
} }