fix numeric / empty username bug

This commit is contained in:
Face 2025-06-08 21:45:12 +03:00
parent 5c95051ddf
commit 1a45c82712
2 changed files with 10 additions and 4 deletions

View file

@ -125,7 +125,7 @@
try {
const fd = new FormData();
fd.append('name', name);
fd.append('name', name.trim());
fd.append('bio', bio);
fd.append('username', username);
if (avatarFile?.[0]) fd.append('avatar', avatarFile[0]);