Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Trigger the set-billing-address when editing Shipping
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir authored and mikejolley committed May 22, 2023
1 parent 11b675f commit 7328e9b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const Block = ( {
setShippingAddress( values );
if ( useShippingAsBilling ) {
setBillingAddress( { ...values, email } );
dispatchCheckoutEvent( 'set-billing-address' );
}
dispatchCheckoutEvent( 'set-shipping-address' );
} }
Expand Down

0 comments on commit 7328e9b

Please sign in to comment.