Only show items if there are multiple packages in the cart (https://github.com/woocommerce/woocommerce-blocks/pull/6899)

This commit is contained in:
Thomas Roberts 2022-08-16 17:19:40 +01:00 committed by GitHub
parent c338a799b3
commit de9b044eba
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ const Packages = ( {
packageData={ packageData }
collapsible={ !! collapsible }
collapse={ !! collapse }
showItems={
showItems || packageData?.shipping_rates?.length > 1
}
showItems={ showItems || packages.length > 1 }
noResultsMessage={ noResultsMessage }
renderOption={ renderOption }
/>