duh
This commit is contained in:
parent
ec12b1bb69
commit
4e3bd44f4e
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ export function doPlayUri(uri: string, skipCostCheck: boolean = false, saveFileO
|
|||
dispatch(doPurchaseUriWrapper(uri, cost, saveFile));
|
||||
}
|
||||
|
||||
function attemptPlay(instantPurchaseEnabled = false, instantPurchaseMax = null) {
|
||||
function attemptPlay(instantPurchaseMax = null) {
|
||||
// If you have a file_list entry, you have already purchased the file
|
||||
if (!fileInfo && (!instantPurchaseMax || !instantPurchaseEnabled || cost > instantPurchaseMax)) {
|
||||
dispatch(doOpenModal(MODALS.AFFIRM_PURCHASE, { uri }));
|
||||
|
@ -230,7 +230,7 @@ export function doPlayUri(uri: string, skipCostCheck: boolean = false, saveFileO
|
|||
}
|
||||
|
||||
if (instantPurchaseEnabled || instantPurchaseMax.currency === 'LBC') {
|
||||
attemptPlay(instantPurchaseEnabled, instantPurchaseMax.amount);
|
||||
attemptPlay(instantPurchaseMax.amount);
|
||||
} else {
|
||||
// Need to convert currency of instant purchase maximum before trying to play
|
||||
Lbryapi.getExchangeRates().then(({ LBC_USD }) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue