Skip to content

Commit

Permalink
Fix console error when checking out as a guest
Browse files Browse the repository at this point in the history
  • Loading branch information
a-danae committed Nov 24, 2023
1 parent 863cfc7 commit 1c2f308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/stripe-utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const appendPaymentMethodIdToForm = ( form, paymentMethodId ) => {
*/
export const isUsingSavedPaymentMethod = () => {
return (
document.querySelector( '#wc-stripe-new-payment-method' ).length &&
document.querySelector( '#wc-stripe-new-payment-method' )?.length &&
! document
.querySelector( '#wc-stripe-new-payment-method' )
.is( ':checked' )
Expand Down

0 comments on commit 1c2f308

Please sign in to comment.