Skip to content

Commit

Permalink
Remove console statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelzaleski committed Dec 16, 2024
1 parent 8cfe829 commit c04f201
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions client/express-checkout/event-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const onShippingRatesCalculated = ( eventAddress ) => {
};

export const shippingAddressChangeHandler = async ( api, event, elements ) => {
console.log( event );
try {
const response = await api.expressCheckoutECECalculateShippingOptions(
normalizeShippingAddress( event.address )
Expand All @@ -49,7 +48,6 @@ export const shippingAddressChangeHandler = async ( api, event, elements ) => {
event.reject();
}
} catch ( e ) {
console.error( e );
event.reject();
}
};
Expand Down Expand Up @@ -187,8 +185,6 @@ export const onCancelHandler = () => {
const context = getExpressCheckoutData( 'button_context' );
const isBlocks = getExpressCheckoutData( 'has_block' );

console.log( context, isBlocks );

if ( ! [ 'cart', 'checkout' ].includes( context ) || ! lastSelectedAddress )
return;

Expand Down
11 changes: 0 additions & 11 deletions client/express-checkout/utils/shortcodeCheckout.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import { normalizeShippingAddress, getExpressCheckoutData } from './';

export const updateBlocksShippingUI = ( eventAddress ) => {
console.log( 'updateBlocksShippingUI' );
const address = normalizeShippingAddress( eventAddress );

wp.data.dispatch( 'wc/store/cart' ).setShippingAddress( address );
Expand All @@ -33,11 +32,6 @@ export const updateShortcodeShippingUI = ( eventAddress ) => {
} else {
field.dispatchEvent( new Event( 'change' ) );
}
} else {
console.error(
`form.woocommerce-shipping-calculator [name="calc_shipping_${ key }"]`
);
console.error( address[ key ] );
}
} );
document
Expand All @@ -59,11 +53,6 @@ export const updateShortcodeShippingUI = ( eventAddress ) => {
} else {
field.dispatchEvent( new Event( 'change' ) );
}
} else {
console.error(
`form.woocommerce-checkout [name="billing_${ key }"]`
);
console.error( address[ key ] );
}
} );
}
Expand Down

0 comments on commit c04f201

Please sign in to comment.