Skip to content

Commit 40241c1

Browse files
committed
fix(profile): Update remove avatar flag based on profile avatar presence
1 parent f94b1c4 commit 40241c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/views/user/edit/index.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
const profile = user.profile;
267267
268268
avatarPreview.src = profile.avatar || "<%= env.CDN_URL %>/img/default-avatar.svg";
269+
removeAvatarFlag.value = profile.avatar ? "false" : "true";
269270
displayNameInput.value = profile.name;
270271
Object.values(userRoleBadges).forEach(badge => badge.classList.add("hidden"));
271272
user.identities.forEach(role => {

0 commit comments

Comments
 (0)