From 3a8fcbee1199c1befd94df8ae634107ee041387a Mon Sep 17 00:00:00 2001 From: Batanayi Matuku Date: Mon, 8 Jul 2024 20:02:54 +0200 Subject: [PATCH] fix: removed duplicate function --- src/payment/checkout/Checkout.jsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/payment/checkout/Checkout.jsx b/src/payment/checkout/Checkout.jsx index 34fd45ef0..e06604b9a 100644 --- a/src/payment/checkout/Checkout.jsx +++ b/src/payment/checkout/Checkout.jsx @@ -172,11 +172,6 @@ class Checkout extends React.Component { const isBulkOrder = orderType === ORDER_TYPES.BULK_ENROLLMENT; const isQuantityUpdating = isBasketProcessing && loaded; - if (!submissionDisabled && isPaypalRedirect) { - // auto submit to paypal since the paypal redirect flag is set in the incoming request - this.handleSubmitPayPal(); - } - // Stripe element config // TODO: Move these to a better home const options = {