woocommerce/plugins/woocommerce-admin/client/task-lists/fills/utils.js

18 lines
473 B
JavaScript
Raw Normal View History

2022-05-16 03:59:40 +00:00
/**
* Internal dependencies
*/
import { getAdminSetting } from '~/utils/admin-settings';
const onboardingData = getAdminSetting( 'onboarding' );
/**
* Returns true if the merchant has indicated that they have another online shop while filling out the OBW
*/
export const isImportProduct = () => {
2022-05-16 03:59:40 +00:00
return (
window?.wcAdminFeatures?.[ 'import-products-task' ] &&
2022-05-16 03:59:40 +00:00
onboardingData?.profile?.selling_venues &&
onboardingData?.profile?.selling_venues !== 'no'
);
};