Check for product_types in the shipping task (https://github.com/woocommerce/woocommerce-admin/pull/3057)
This commit is contained in:
parent
0ee9188e58
commit
a4ac2d8521
|
@ -86,7 +86,9 @@ export function getTasks( { profileItems, options, query } ) {
|
|||
icon: 'local_shipping',
|
||||
container: <Shipping />,
|
||||
completed: shippingZonesCount > 0,
|
||||
visible: profileItems.product_types.includes( 'physical' ) || hasPhysicalProducts,
|
||||
visible:
|
||||
( profileItems.product_types && profileItems.product_types.includes( 'physical' ) ) ||
|
||||
hasPhysicalProducts,
|
||||
},
|
||||
{
|
||||
key: 'tax',
|
||||
|
|
Loading…
Reference in New Issue