Don't prompt to create persona if replacing an image

This commit is contained in:
Cohee 2023-11-14 22:07:32 +02:00
parent ea583e0ff5
commit 4277aac974
1 changed files with 1 additions and 1 deletions

View File

@ -5187,7 +5187,7 @@ async function uploadUserAvatar(e) {
reloadUserAvatar(true);
}
if (data.path) {
if (!name && data.path) {
await getUserAvatars();
await delay(500);
await createPersona(data.path);