Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: resolved conflict with existing method

Sheen Capadnganf3a8fda25422
diff --git a/frontend/src/hooks/api/users/index.tsx b/frontend/src/hooks/api/users/index.tsx
index 87cf7c78f3..b7e8d6be3c 100644
--- a/frontend/src/hooks/api/users/index.tsx
+++ b/frontend/src/hooks/api/users/index.tsx
@@ -10,6 +10,7 @@ export {
useAddUserToOrg,
useCreateAPIKey,
useDeleteAPIKey,
+ useDeleteMe,
useDeleteOrgMembership,
useGetMyAPIKeys,
useGetMyAPIKeysV2,
diff --git a/frontend/src/hooks/api/users/queries.tsx b/frontend/src/hooks/api/users/queries.tsx
index 962961bc29..bee58027c1 100644
--- a/frontend/src/hooks/api/users/queries.tsx
+++ b/frontend/src/hooks/api/users/queries.tsx
@@ -49,7 +49,7 @@ export const fetchUsersList = async () => {
export const useListUsers = () => useQuery(userKeys.listUsers, fetchUsersList);
-export const useDeleteUser = () => {
+export const useDeleteMe = () => {
const queryClient = useQueryClient();
return useMutation({
diff --git a/frontend/src/views/Settings/PersonalSettingsPage/DeleteAccountSection/DeleteAccountSection.tsx b/frontend/src/views/Settings/PersonalSettingsPage/DeleteAccountSection/DeleteAccountSection.tsx
index 49908eabc8..fab1057ba8 100644
--- a/frontend/src/views/Settings/PersonalSettingsPage/DeleteAccountSection/DeleteAccountSection.tsx
+++ b/frontend/src/views/Settings/PersonalSettingsPage/DeleteAccountSection/DeleteAccountSection.tsx
@@ -2,17 +2,17 @@ import { useRouter } from "next/router";
import { createNotification } from "@app/components/notifications";
import { Button, DeleteActionModal } from "@app/components/v2";
-import { useDeleteUser } from "@app/hooks/api";
+import { useDeleteMe } from "@app/hooks/api";
import { usePopUp } from "@app/hooks/usePopUp";
export const DeleteAccountSection = () => {
const router = useRouter();
-
+
const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([
"deleteAccount"
] as const);
- const { mutateAsync: deleteUserMutateAsync, isLoading } = useDeleteUser();
+ const { mutateAsync: deleteUserMutateAsync, isLoading } = useDeleteMe();
const handleDeleteAccountSubmit = async () => {
try {