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