diff --git a/plugins/woocommerce-admin/client/dashboard/task-list/tasks/connect.js b/plugins/woocommerce-admin/client/dashboard/task-list/tasks/connect.js index 51749a620ed..58b9ce7d11c 100644 --- a/plugins/woocommerce-admin/client/dashboard/task-list/tasks/connect.js +++ b/plugins/woocommerce-admin/client/dashboard/task-list/tasks/connect.js @@ -17,7 +17,7 @@ import { getHistory, getNewPath } from '@woocommerce/navigation'; /** * Internal depdencies */ -import { NAMESPACE } from 'wc-api/constants'; +import { WC_ADMIN_NAMESPACE } from 'wc-api/constants'; import withSelect from 'wc-api/with-select'; class Connect extends Component { @@ -67,7 +67,7 @@ class Connect extends Component { async request() { try { const connectResponse = await apiFetch( { - path: `${ NAMESPACE }/onboarding/plugins/request-wccom-connect`, + path: `${ WC_ADMIN_NAMESPACE }/onboarding/plugins/request-wccom-connect`, method: 'POST', } ); if ( connectResponse && connectResponse.connectAction ) { @@ -84,7 +84,7 @@ class Connect extends Component { const { query } = this.props; try { const connectResponse = await apiFetch( { - path: `${ NAMESPACE }/onboarding/plugins/finish-wccom-connect`, + path: `${ WC_ADMIN_NAMESPACE }/onboarding/plugins/finish-wccom-connect`, method: 'POST', data: { request_token: query.request_token,