fix: linting warnings (#1069)

## Description

Cleaned up code that was being highlighted in the dev tools
This commit is contained in:
David Nguyen
2024-03-30 13:43:28 +08:00
committed by GitHub
parent 369357aadd
commit 81ee582f1c
8 changed files with 7 additions and 12 deletions

View File

@ -55,11 +55,8 @@ export const ProfileForm = ({ className, user }: ProfileFormProps) => {
});
const isSubmitting = form.formState.isSubmitting;
const hasTwoFactorAuthentication = user.twoFactorEnabled;
const { mutateAsync: updateProfile } = trpc.profile.updateProfile.useMutation();
const { mutateAsync: deleteAccount, isLoading: isDeletingAccount } =
trpc.profile.deleteAccount.useMutation();
const onFormSubmit = async ({ name, signature }: TProfileFormSchema) => {
try {