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

Commit

Permalink
update to match new condensed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir committed Oct 19, 2023
1 parent ea812d3 commit 45c180b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const CustomerAddress = ( {
setShippingAddress,
setBillingAddress,
setShippingPhone,
setBillingPhone,
useShippingAsBilling,
} = useCheckoutAddress();
const { dispatchCheckoutEvent } = useStoreEvents();
Expand Down Expand Up @@ -129,6 +130,12 @@ const CustomerAddress = ( {
dispatchCheckoutEvent( 'set-phone-number', {
step: 'shipping',
} );
if ( useShippingAsBilling ) {
setBillingPhone( value );
dispatchCheckoutEvent( 'set-phone-number', {
step: 'billing',
} );
}
} }
/>
) }
Expand Down

0 comments on commit 45c180b

Please sign in to comment.