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