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

Commit

Permalink
Check for product_types in the shipping task (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshreve authored Oct 17, 2019
1 parent 707bdbe commit 25e5caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/dashboard/task-list/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 25e5caf

Please sign in to comment.