Only mark purchase task as complete when products exist (https://github.com/woocommerce/woocommerce-admin/pull/4574)
This commit is contained in:
parent
16d9535700
commit
701f90cc23
|
@ -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' ),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue