parent
f6a9d629a5
commit
65f4562937
1 changed files with 10 additions and 6 deletions
|
@ -197,13 +197,17 @@ export function doPlayUri(
|
|||
return;
|
||||
}
|
||||
|
||||
if (instantPurchaseEnabled || instantPurchaseMax.currency === 'LBC') {
|
||||
attemptPlay(instantPurchaseMax.amount);
|
||||
if (instantPurchaseEnabled) {
|
||||
if (instantPurchaseMax.currency === 'LBC') {
|
||||
attemptPlay(instantPurchaseMax.amount);
|
||||
} else {
|
||||
// Need to convert currency of instant purchase maximum before trying to play
|
||||
Lbryio.getExchangeRates().then(({ LBC_USD }) => {
|
||||
attemptPlay(instantPurchaseMax.amount / LBC_USD);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// Need to convert currency of instant purchase maximum before trying to play
|
||||
Lbryio.getExchangeRates().then(({ LBC_USD }) => {
|
||||
attemptPlay(instantPurchaseMax.amount / LBC_USD);
|
||||
});
|
||||
attemptPlay();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue