Skip to content

Commit

Permalink
Rename to profile in tracking file
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Nov 24, 2024
1 parent 52c87d1 commit 45eff86
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
});

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Settings/Danger/Delete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ProtectAccount: FC = () => {
} = useWriteContract({
mutation: {
onError,
onSuccess: () => Leafwatch.track(SETTINGS.DANGER.PROTECT_PROFILE)
onSuccess: () => Leafwatch.track(SETTINGS.DANGER.PROTECT_ACCOUNT)
}
});

Expand Down
6 changes: 3 additions & 3 deletions packages/data/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit 45eff86

@vercel
Copy link

@vercel vercel bot commented on 45eff86 Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./

web-heyxyz.vercel.app
hey.xyz
web-git-main-heyxyz.vercel.app
heyxyz.vercel.app

Please sign in to comment.