From 2173cec0a4648a219c5f59012ac6f984202f706a Mon Sep 17 00:00:00 2001 From: Seghir Nadir Date: Mon, 22 May 2023 10:30:49 +0100 Subject: [PATCH] Trigger the set-billing-address when editing Shipping (#8841) --- .../inner-blocks/checkout-shipping-address-block/block.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/block.tsx b/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/block.tsx index 17a7158e2bb..96ef324e30a 100644 --- a/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/block.tsx +++ b/assets/js/blocks/checkout/inner-blocks/checkout-shipping-address-block/block.tsx @@ -119,6 +119,7 @@ const Block = ( { setShippingAddress( values ); if ( useShippingAsBilling ) { setBillingAddress( { ...values, email } ); + dispatchCheckoutEvent( 'set-billing-address' ); } dispatchCheckoutEvent( 'set-shipping-address' ); } }