fixed #98
This commit is contained in:
@@ -73,7 +73,10 @@ export const ProfileForm: React.FC<ProfileFormProps> = ({ user }: ProfileFormPro
|
||||
className="card-body"
|
||||
onSubmit={form.handleSubmit(async (values) => {
|
||||
if (!values.id) return;
|
||||
await editUser(values.id, values);
|
||||
await editUser(values.id, {
|
||||
...values,
|
||||
email: values.email.toLowerCase(),
|
||||
});
|
||||
form.reset(values);
|
||||
toast.success("Deine Änderungen wurden gespeichert!", {
|
||||
style: {
|
||||
|
||||
@@ -91,7 +91,10 @@ export const ProfileForm = ({
|
||||
className="card-body"
|
||||
onSubmit={form.handleSubmit(async (values) => {
|
||||
setIsLoading(true);
|
||||
await updateUser(values);
|
||||
await updateUser({
|
||||
...values,
|
||||
email: values.email.toLowerCase(),
|
||||
});
|
||||
if (discordAccount) {
|
||||
await setStandardName({
|
||||
memberId: discordAccount.discordId,
|
||||
|
||||
Reference in New Issue
Block a user