diff --git a/apps/web/src/components/Settings/Danger/AccountGuardian.tsx b/apps/web/src/components/Settings/Danger/AccountGuardian.tsx index cbdd2551bc64..ee30fa6ca66a 100644 --- a/apps/web/src/components/Settings/Danger/AccountGuardian.tsx +++ b/apps/web/src/components/Settings/Danger/AccountGuardian.tsx @@ -36,7 +36,7 @@ const AccountGuardianSettings: FC = () => { const { data, writeContractAsync } = useWriteContract({ mutation: { onError: (error: Error) => onError(error), - onSuccess: () => Leafwatch.track(SETTINGS.DANGER.UNPROTECT_PROFILE) + onSuccess: () => Leafwatch.track(SETTINGS.DANGER.UNPROTECT_ACCOUNT) } }); diff --git a/apps/web/src/components/Settings/Danger/Delete.tsx b/apps/web/src/components/Settings/Danger/Delete.tsx index 74561ebcbfad..9e29ed958bd9 100644 --- a/apps/web/src/components/Settings/Danger/Delete.tsx +++ b/apps/web/src/components/Settings/Danger/Delete.tsx @@ -32,7 +32,7 @@ const DeleteSettings: FC = () => { const handleWrongNetwork = useHandleWrongNetwork(); const onCompleted = () => { - Leafwatch.track(SETTINGS.DANGER.DELETE_PROFILE); + Leafwatch.track(SETTINGS.DANGER.DELETE_ACCOUNT); signOut(); disconnect?.(); location.href = "/"; diff --git a/apps/web/src/components/Shared/GlobalBanners/ProtectAccount.tsx b/apps/web/src/components/Shared/GlobalBanners/ProtectAccount.tsx index 8aba643db14c..892b7feac939 100644 --- a/apps/web/src/components/Shared/GlobalBanners/ProtectAccount.tsx +++ b/apps/web/src/components/Shared/GlobalBanners/ProtectAccount.tsx @@ -30,7 +30,7 @@ const ProtectAccount: FC = () => { } = useWriteContract({ mutation: { onError, - onSuccess: () => Leafwatch.track(SETTINGS.DANGER.PROTECT_PROFILE) + onSuccess: () => Leafwatch.track(SETTINGS.DANGER.PROTECT_ACCOUNT) } }); diff --git a/packages/data/tracking.ts b/packages/data/tracking.ts index e3a8da9c3eec..56474d273a95 100644 --- a/packages/data/tracking.ts +++ b/packages/data/tracking.ts @@ -124,10 +124,10 @@ export const SETTINGS = { TOGGLE: "Toggle allowance" }, DANGER: { - DELETE_PROFILE: "Delete profile", - PROTECT_PROFILE: "Protect profile", + DELETE_ACCOUNT: "Delete account", + PROTECT_ACCOUNT: "Protect account", UNPROTECT_HANDLE: "Unprotect handle", - UNPROTECT_PROFILE: "Unprotect profile" + UNPROTECT_ACCOUNT: "Unprotect account" }, EXPORT: { FOLLOWERS: "Export followers",