mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-08 08:25:05 +08:00
fix: trim new email when updating email
!nuf
This commit is contained in:
parent
8c7ee8bc26
commit
535700f0c5
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue