From 5125973a1f44000da9960ce5ecaf4801c74c6d55 Mon Sep 17 00:00:00 2001 From: Thomas Roberts Date: Tue, 2 Aug 2022 11:55:10 +0100 Subject: [PATCH] Show items if there is more than one shipping rate --- .../components/cart-checkout/shipping-rates-control/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/base/components/cart-checkout/shipping-rates-control/index.tsx b/assets/js/base/components/cart-checkout/shipping-rates-control/index.tsx index c70c1acbf6e..eea684b19ff 100644 --- a/assets/js/base/components/cart-checkout/shipping-rates-control/index.tsx +++ b/assets/js/base/components/cart-checkout/shipping-rates-control/index.tsx @@ -66,7 +66,7 @@ const Packages = ( { collapsible={ !! collapsible } collapse={ !! collapse } showItems={ - showItems || packageData?.shipping_rates?.length >= 1 + showItems || packageData?.shipping_rates?.length > 1 } noResultsMessage={ noResultsMessage } renderOption={ renderOption } @@ -167,6 +167,7 @@ const ShippingRatesControl = ( { ShippingRatesControlPackage, }, context, + shippingRates, }; const { isEditor } = useEditorContext(); @@ -192,6 +193,7 @@ const ShippingRatesControl = ( { /> 1 } packages={ shippingRates } noResultsMessage={ noResultsMessage } renderOption={ renderOption }