From 786426c5f646fd64afd34d8e76c13795fdc3f69a Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Sat, 23 Jan 2021 18:37:57 +0000
Subject: [PATCH] Fix typo

---
 js/civicrm_stripe.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js
index 192df404..7a7482e1 100644
--- a/js/civicrm_stripe.js
+++ b/js/civicrm_stripe.js
@@ -199,7 +199,7 @@
         // For recur, additional participants we do NOT know the final amount so must create a paymentMethod and only create the paymentIntent
         //   once the form is finally submitted.
         // We should never get here with amount=0 as we should be doing a "nonStripeSubmit()" instead. This may become needed when we save cards
-        if (CRM.payment.getIsRecur() || CRM.payment.isEvenAdditionalParticipants() || (CRM.payment.getTotalAmount() === 0.0)) {
+        if (CRM.payment.getIsRecur() || CRM.payment.isEventAdditionalParticipants() || (CRM.payment.getTotalAmount() === 0.0)) {
           CRM.api3('StripePaymentintent', 'createorupdate', {
             stripe_intent_id: createPaymentMethodResult.paymentMethod.id,
             description: document.title,
-- 
GitLab