mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Update code comments
This commit is contained in:
parent
47ceb8333b
commit
8ef129066b
1 changed files with 3 additions and 3 deletions
|
@ -85,14 +85,14 @@ export const populateWooFields = (
|
|||
|
||||
const checkoutDispatch = dispatch( CHECKOUT_STORE_KEY );
|
||||
|
||||
// Disable the 'Use same address for billing' checkbox if the method exists.
|
||||
// Uncheck the 'Use same address for billing' checkbox if the method exists.
|
||||
if (
|
||||
typeof checkoutDispatch.__internalSetUseShippingAsBilling === 'function'
|
||||
) {
|
||||
checkoutDispatch.__internalSetUseShippingAsBilling( false );
|
||||
}
|
||||
|
||||
// Save shipping address
|
||||
// Save shipping address.
|
||||
const { address, name, phoneNumber } = profileData.shippingAddress;
|
||||
|
||||
const shippingAddress = {
|
||||
|
@ -110,7 +110,7 @@ export const populateWooFields = (
|
|||
console.log( 'Setting WooCommerce shipping address:', shippingAddress );
|
||||
setWooShippingAddress( shippingAddress );
|
||||
|
||||
// Save billing address
|
||||
// Save billing address.
|
||||
const billingData = profileData.card.paymentSource.card.billingAddress;
|
||||
|
||||
const billingAddress = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue