Skip to content

Commit

Permalink
fix(unlock-js): fixing approvals
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Aug 28, 2024
1 parent 907f119 commit 5d1960a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5d1960a

Please sign in to comment.