Skip to content

Commit 535700f

Browse files
committed
fix: trim new email when updating email
!nuf
1 parent 8c7ee8b commit 535700f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/ts/modals/simple-modals.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ list.updateEmail = new SimpleModal({
261261
}
262262

263263
const response = await Ape.users.updateEmail({
264-
body: { newEmail: email, previousEmail: reauth.user.email as string },
264+
body: {
265+
newEmail: email.trim(),
266+
previousEmail: reauth.user.email as string,
267+
},
265268
});
266269

267270
if (response.status !== 200) {

0 commit comments

Comments
 (0)