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

Commit 0579d57

Browse files
committed
Revert #6591
1 parent 0f0212b commit 0579d57

File tree

1 file changed

+1
-3
lines changed
  • assets/js/base/components/cart-checkout/shipping-calculator

1 file changed

+1
-3
lines changed

assets/js/base/components/cart-checkout/shipping-calculator/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ const ShippingCalculator = ( {
2121
},
2222
addressFields = [ 'country', 'state', 'city', 'postcode' ],
2323
}: ShippingCalculatorProps ): JSX.Element => {
24-
const { shippingAddress, setShippingAddress, setBillingAddress } =
25-
useCustomerData();
24+
const { shippingAddress, setShippingAddress } = useCustomerData();
2625
return (
2726
<div className="wc-block-components-shipping-calculator">
2827
<ShippingCalculatorAddress
2928
address={ shippingAddress }
3029
addressFields={ addressFields }
3130
onUpdate={ ( newAddress ) => {
3231
setShippingAddress( newAddress );
33-
setBillingAddress( newAddress );
3432
onUpdate( newAddress );
3533
} }
3634
/>

0 commit comments

Comments
 (0)