diff --git a/src/components/bcros/todo/Item.vue b/src/components/bcros/todo/Item.vue index 2519b51..e2c4669 100644 --- a/src/components/bcros/todo/Item.vue +++ b/src/components/bcros/todo/Item.vue @@ -149,8 +149,9 @@ const deleteApplication = async (): Promise => { /** Cancel the payment and set the filing status to draft; reload the page; handle errors if exist */ const cancelPaymentAndSetToDraft = async (_refreshDashboard = true): Promise => { + const bId = currentBusinessIdentifier.value || bootstrapIdentifier.value const url = - `${runtimeConfig.public.legalApiURL}/businesses/${currentBusinessIdentifier.value}/filings/${prop.item.filingId}` + `${runtimeConfig.public.legalApiURL}/businesses/${bId}/filings/${prop.item.filingId}` await useBcrosFetch(url, { method: 'PATCH' }).then(({ error }) => { showConfirmDialog.value = false diff --git a/src/utils/todo/action-functions.ts b/src/utils/todo/action-functions.ts index ce0f4e2..fc8f8bf 100644 --- a/src/utils/todo/action-functions.ts +++ b/src/utils/todo/action-functions.ts @@ -113,7 +113,7 @@ export const doResumeFiling = (item: TodoItemI): void => { case FilingTypes.REGISTRATION: // navigate to Create UI to resume this Registration navigateFn = goToCreatePage - path = 'define-registration' + path = '/define-registration' params = { id: bootstrapIdentifier } break