Skip to content

Commit

Permalink
chore: change mkt_cancel refs to mkt-cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoconnell committed Jul 11, 2023
1 parent e7bb199 commit 74291e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/cloud/userAccounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('Free account Deletion', () => {
.click()
})
cy.location().should(loc => {
expect(loc.href).to.eq(`https://www.influxdata.com/mkt_cancel/`)
expect(loc.href).to.eq(`https://www.influxdata.com/mkt-cancel/`)
})
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/accounts/context/DeleteFreeAccountContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const RedirectLocations = {
SWITCHING_ORGANIZATION: '/org_cancel',
RE_SIGNUP: '/cancel',
}
const DEFAULT_REDIRECT_LOCATION = '/mkt_cancel'
const DEFAULT_REDIRECT_LOCATION = '/mkt-cancel'

export const DeleteFreeAccountContext =
createContext<DeleteFreeAccountContextType>(
Expand All @@ -69,7 +69,7 @@ export const DeleteFreeAccountProvider: FC<Props> = ({children}) => {
)

const getRedirectLocation = () => {
const uri = RedirectLocations[reason] ?? '/mkt_cancel'
const uri = RedirectLocations[reason] ?? '/mkt-cancel'

return `https://www.influxdata.com${uri}`
}
Expand Down
4 changes: 2 additions & 2 deletions src/billing/components/PayAsYouGo/CancelServiceContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const RedirectLocations = {
SWITCHING_ORGANIZATION: '/org_cancel',
RE_SIGNUP: '/cancel',
}
const DEFAULT_REDIRECT_LOCATION = '/mkt_cancel'
const DEFAULT_REDIRECT_LOCATION = '/mkt-cancel'

// Ensures that the default cancelation "reason" is always the key name for the "NONE" enum.
const getDefaultCancelationReason = () => {
Expand Down Expand Up @@ -83,7 +83,7 @@ export const CancelServiceProvider: FC<Props> = ({children}) => {
}

const getRedirectLocation = () => {
const uri = RedirectLocations[reason] ?? '/mkt_cancel'
const uri = RedirectLocations[reason] ?? '/mkt-cancel'

return `https://www.influxdata.com${uri}`
}
Expand Down

0 comments on commit 74291e3

Please sign in to comment.