diff --git a/assets/js/blocks/index.js b/assets/js/blocks/index.js
index 403618243..ec966513f 100755
--- a/assets/js/blocks/index.js
+++ b/assets/js/blocks/index.js
@@ -15,9 +15,6 @@ function BuckarooComponent({ wc, billing, gateway, eventRegistration, emitRespon
const methodName = convertUnderScoreToDash(gateway.paymentMethodId);
useEffect(() => {
- // Only methods that actually carry a payment fee need the server-side
- // recalculation. Skipping it for fee-less methods avoids a full
- // WordPress bootstrap on every payment method switch.
if (!gateway.hasFee) {
return;
}
@@ -30,9 +27,6 @@ function BuckarooComponent({ wc, billing, gateway, eventRegistration, emitRespon
method: gateway.paymentMethodId,
},
});
-
- // Abort the in-flight request when the selection changes again so
- // rapid switching does not pile up redundant requests.
return () => request.abort();
}, [gateway.paymentMethodId, gateway.hasFee]);
@@ -254,7 +248,9 @@ const createOptions = (wc, gateway) => ({
label: