From 45c180b61d821089574d6b56e7c4b6b12e110e19 Mon Sep 17 00:00:00 2001 From: Nadir Seghir Date: Thu, 19 Oct 2023 18:17:16 +0200 Subject: [PATCH] update to match new condensed changes --- .../checkout-shipping-address-block/customer-address.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/customer-address.tsx b/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/customer-address.tsx index f041c54d369..c5095fa80f9 100644 --- a/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/customer-address.tsx +++ b/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/customer-address.tsx @@ -34,6 +34,7 @@ const CustomerAddress = ( { setShippingAddress, setBillingAddress, setShippingPhone, + setBillingPhone, useShippingAsBilling, } = useCheckoutAddress(); const { dispatchCheckoutEvent } = useStoreEvents(); @@ -129,6 +130,12 @@ const CustomerAddress = ( { dispatchCheckoutEvent( 'set-phone-number', { step: 'shipping', } ); + if ( useShippingAsBilling ) { + setBillingPhone( value ); + dispatchCheckoutEvent( 'set-phone-number', { + step: 'billing', + } ); + } } } /> ) }