Skip to content

Commit

Permalink
24921 - fix: cancel payment, resume sole prop (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfekete authored Dec 13, 2024
1 parent b19cf9d commit 5924122
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/bcros/todo/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ const deleteApplication = async (): Promise<void> => {
/** Cancel the payment and set the filing status to draft; reload the page; handle errors if exist */
const cancelPaymentAndSetToDraft = async (_refreshDashboard = true): Promise<void> => {
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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/todo/action-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5924122

Please sign in to comment.