Do not send username for profile updates if it isn't set yet
This commit is contained in:
@@ -72,7 +72,7 @@ async function onSubmit() {
|
||||
let userId = user.value ? user.value.id : null;
|
||||
|
||||
// can only be set not updated
|
||||
if (!user.value || !user.value.username) data.username = username.value || null;
|
||||
if ((!user.value || !user.value.username) && username.value) data.username = username.value;
|
||||
|
||||
const isExternal = user.value && user.value.source;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user