From 93cd54104c3cf4c761729b3b26233ec56a42b425 Mon Sep 17 00:00:00 2001 From: hexastack Date: Wed, 19 Feb 2025 15:33:23 +0100 Subject: [PATCH] fix: remove unused async --- frontend/src/components/context-vars/ContextVarForm.tsx | 2 +- frontend/src/components/profile/profile.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/context-vars/ContextVarForm.tsx b/frontend/src/components/context-vars/ContextVarForm.tsx index 8a31e945..de27bd53 100644 --- a/frontend/src/components/context-vars/ContextVarForm.tsx +++ b/frontend/src/components/context-vars/ContextVarForm.tsx @@ -72,7 +72,7 @@ export const ContextVarForm: FC> = ({ required: t("message.label_is_required"), }, }; - const onSubmitForm = async (params: IContextVarAttributes) => { + const onSubmitForm = (params: IContextVarAttributes) => { if (data) { updateContextVar({ id: data.id, params }); } else { diff --git a/frontend/src/components/profile/profile.tsx b/frontend/src/components/profile/profile.tsx index 8dabf41d..5d4df1f1 100644 --- a/frontend/src/components/profile/profile.tsx +++ b/frontend/src/components/profile/profile.tsx @@ -79,7 +79,7 @@ export const ProfileForm: FC = ({ user }) => { }, }, }; - const onSubmitForm = async ({ + const onSubmitForm = ({ password, password2: _password2, ...rest