Only mark purchase task as complete when products exist (https://github.com/woocommerce/woocommerce-admin/pull/4574)

This commit is contained in:
Joshua T Flowers 2020-06-16 01:38:36 +03:00 committed by GitHub
parent 16d9535700
commit 701f90cc23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export function getAllTasks( {
onClick: () => onClick: () =>
remainingProductIds.length ? toggleCartModal() : null, remainingProductIds.length ? toggleCartModal() : null,
visible: productIds.length, visible: productIds.length,
completed: ! remainingProductIds.length, completed: productIds.length && ! remainingProductIds.length,
time: __( '2 minutes', 'woocommerce-admin' ), time: __( '2 minutes', 'woocommerce-admin' ),
}, },
{ {