Skip to content

Commit

Permalink
fix: Add event when canceling safe creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Oct 25, 2023
1 parent 7bc0ba3 commit 3cc7351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/new-safe/create/steps/SetNameStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function SetNameStep({
}

const onCancel = () => {
trackEvent(CREATE_SAFE_EVENTS.CANCEL_CREATE_SAFE_FORM)
router.push(AppRoutes.welcome)
}

Expand Down
4 changes: 4 additions & 0 deletions src/services/analytics/events/createLoadSafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export const CREATE_SAFE_EVENTS = {
action: 'Retry Safe creation',
category: CREATE_SAFE_CATEGORY,
},
CANCEL_CREATE_SAFE_FORM: {
action: 'Cancel safe creation form',
category: CREATE_SAFE_CATEGORY,
},
CANCEL_CREATE_SAFE: {
event: EventType.META,
action: 'Cancel Safe creation',
Expand Down

0 comments on commit 3cc7351

Please sign in to comment.