fix numeric / empty username bug
This commit is contained in:
parent
5c95051ddf
commit
1a45c82712
2 changed files with 10 additions and 4 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Reference in a new issue