Trigger the set-billing-address when editing Shipping (https://github.com/woocommerce/woocommerce-blocks/pull/8841)

This commit is contained in:
Seghir Nadir 2023-05-22 10:30:49 +01:00 committed by GitHub
parent 90e57bca11
commit 5457145c6a
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ const Block = ( {
setShippingAddress( values );
if ( useShippingAsBilling ) {
setBillingAddress( { ...values, email } );
dispatchCheckoutEvent( 'set-billing-address' );
}
dispatchCheckoutEvent( 'set-shipping-address' );
} }