diff --git a/src/configs/OnboardingList.config.js b/src/configs/OnboardingList.config.js index a4b9a8a3..1fd1a8be 100644 --- a/src/configs/OnboardingList.config.js +++ b/src/configs/OnboardingList.config.js @@ -85,7 +85,7 @@ export function OnboardingListDefinition(props) { state: { isCompleted: (queries) => queries?.orders?.pendingOrders?.length < 1, isActive: (queries) => queries?.orders?.ordersCount > 0, - url: (queries) => queries?.orders?.pendingOrders?.length !== 1 ? `${NewfoldRuntime.siteDetails?.url}/wp-admin/edit.php?post_type=shop_order` : `${NewfoldRuntime.siteDetails?.url}/wp-admin/post.php?post=${queries?.orders?.pendingOrders[0]?.id}&action=edit` + url: (queries) => queries?.orders?.pendingOrders?.length !== 1 ? `${RuntimeSdk.adminUrl('edit.php?post_type=shop_order')}` : RuntimeSdk.adminUrl(`post.php?post=${queries?.orders?.pendingOrders[0]?.id}&action=edit`) }, shouldRender: (state) => NewfoldRuntime.isWoo && state.isActive, actions: {