diff --git a/.changeset/wet-students-fry.md b/.changeset/wet-students-fry.md new file mode 100644 index 000000000..63082af88 --- /dev/null +++ b/.changeset/wet-students-fry.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": minor +--- + +Hide handling cost in shipping estimate if there is no cost associated. diff --git a/apps/core/app/[locale]/(default)/cart/_components/shipping-estimator.tsx b/apps/core/app/[locale]/(default)/cart/_components/shipping-estimator.tsx index f0982e8e4..1c83b9a6d 100644 --- a/apps/core/app/[locale]/(default)/cart/_components/shipping-estimator.tsx +++ b/apps/core/app/[locale]/(default)/cart/_components/shipping-estimator.tsx @@ -55,12 +55,14 @@ export const ShippingEstimator = ({ key={shippingCosts.selectedShippingOption} /> -
- {t('handlingCost')} - - {currencyFormatter.format(shippingCosts.handlingCostTotal)} - -
+ {Boolean(shippingCosts.handlingCostTotal) && ( +
+ {t('handlingCost')} + + {currencyFormatter.format(shippingCosts.handlingCostTotal)} + +
+ )} ) : (