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

Commit

Permalink
Do not show calculator button if local pickup rate is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed Mar 10, 2023
1 parent 5baa002 commit 4ec94ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ShippingAddress = ( {
) : (
<ShippingLocation address={ shippingAddress } />
) }
{ showCalculator && (
{ showCalculator && ! prefersCollection ? (
<CalculatorButton
label={ __(
'(change address)',
Expand All @@ -45,7 +45,7 @@ export const ShippingAddress = ( {
isShippingCalculatorOpen={ isShippingCalculatorOpen }
setIsShippingCalculatorOpen={ setIsShippingCalculatorOpen }
/>
) }
) : null }
</>
);
};
Expand Down

0 comments on commit 4ec94ea

Please sign in to comment.