* Require Jetpack connected and WCS active to mark the shipping task as complete

* Require country _not_ be in AU, NZ, or UK to mark shipping methods as complete

* Bump CI

Co-authored-by: Rebecca Scott <me@becdetat.com>
This commit is contained in:
Bec Scott 2020-10-09 12:18:19 +10:00 committed by GitHub
parent f6cd6c25c8
commit b8adfaaa94
1 changed files with 7 additions and 1 deletions

View File

@ -94,6 +94,12 @@ export function getAllTasks( {
purchaseAndInstallText = sprintf( purchaseAndInstallFormat, itemName );
}
const shippingCompleted =
shippingZonesCount > 0 &&
isJetpackConnected &&
activePlugins.includes( 'woocommerce-services' ) &&
! [ 'AU', 'NZ', 'UK' ].includes( countryCode );
const tasks = [
{
key: 'store_details',
@ -218,7 +224,7 @@ export function getAllTasks( {
} );
updateQueryString( { task: 'shipping' } );
},
completed: shippingZonesCount > 0,
completed: shippingCompleted,
visible:
( productTypes && productTypes.includes( 'physical' ) ) ||
hasPhysicalProducts,