diff --git a/packages/unlock-js/src/PublicLock/v10/getPurchaseKeysArguments.js b/packages/unlock-js/src/PublicLock/v10/getPurchaseKeysArguments.js index 827795fd50c..c1f9382aae5 100644 --- a/packages/unlock-js/src/PublicLock/v10/getPurchaseKeysArguments.js +++ b/packages/unlock-js/src/PublicLock/v10/getPurchaseKeysArguments.js @@ -80,7 +80,7 @@ export default async function getPurchaseKeysArguments({ totalAmountToApprove = keyPrices .map((keyPrice, i) => { if (keyPrice > 0) { - const recurringPayment = recurringPayments[i] + const recurringPayment = recurringPayments && recurringPayments[i] if (!recurringPayment) { return keyPrice } else if (recurringPayment === Infinity) {