Skip to content

Commit

Permalink
Remove empty complete and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 14, 2024
1 parent a691410 commit 71ff364
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions resources/js/blocks/ApplePayButtonComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ export const ApplePayButtonComponent = ({cart, extensions}) => {
simplifiedContact: updatedContactInfo,
'woocommerce-process-checkout-nonce': nonce,
},
complete: (jqXHR, textStatus) => {
},
success: (applePayShippingMethodUpdate, textStatus, jqXHR) => {
let response = applePayShippingMethodUpdate.data
console.log(response)
selectedShippingMethod = event.shippingMethod
if (applePayShippingMethodUpdate.success === false) {
response.errors = createAppleErrors(response.errors)
Expand All @@ -72,8 +69,6 @@ export const ApplePayButtonComponent = ({cart, extensions}) => {
'woocommerce-process-checkout-nonce': nonce,
shippingMethod: selectedShippingMethod,
},
complete: (jqXHR, textStatus) => {
},
success: (applePayShippingContactUpdate, textStatus, jqXHR) => {
let response = applePayShippingContactUpdate.data
updatedContactInfo = event.shippingContact
Expand All @@ -100,8 +95,6 @@ export const ApplePayButtonComponent = ({cart, extensions}) => {
validationUrl: applePayValidateMerchantEvent.validationURL,
'woocommerce-process-checkout-nonce': nonce,
},
complete: (jqXHR, textStatus) => {
},
success: (merchantSession, textStatus, jqXHR) => {
if (merchantSession.success === true) {
session.completeMerchantValidation(JSON.parse(merchantSession.data))
Expand Down

0 comments on commit 71ff364

Please sign in to comment.