fix: trim new email when updating email

!nuf
This commit is contained in:
Miodec 2025-02-15 17:28:56 +01:00
parent 8c7ee8bc26
commit 535700f0c5

View file

@ -261,7 +261,10 @@ list.updateEmail = new SimpleModal({
}
const response = await Ape.users.updateEmail({
body: { newEmail: email, previousEmail: reauth.user.email as string },
body: {
newEmail: email.trim(),
previousEmail: reauth.user.email as string,
},
});
if (response.status !== 200) {