Skip to content

Commit be1426b

Browse files
authored
OC: Fix error when checking out as guest on Blocks (#4288)
1 parent a2b6343 commit be1426b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/blocks/upe/upe-deferred-intent-creation/payment-processor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ const PaymentProcessor = ( {
341341
const savingPaymentMethodCheckbox = document.querySelector(
342342
'.wc-block-components-payment-methods__save-card-info input[type=checkbox]'
343343
);
344-
savingPaymentMethodCheckbox.addEventListener(
344+
savingPaymentMethodCheckbox?.addEventListener(
345345
'change',
346346
function () {
347347
elements.update( {

0 commit comments

Comments
 (0)