about summary refs log tree commit diff
path: root/src/state/models/profile-view.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/profile-view.ts')
-rw-r--r--src/state/models/profile-view.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts
index a6854801c..9d3eeff58 100644
--- a/src/state/models/profile-view.ts
+++ b/src/state/models/profile-view.ts
@@ -146,7 +146,7 @@ export class ProfileViewModel {
         cid: res.data.cid,
         mimeType: newUserAvatar.mime,
       }
-    } else {
+    } else if (newUserAvatar === null) {
       updates.avatar = null
     }
     if (newUserBanner) {
@@ -159,7 +159,7 @@ export class ProfileViewModel {
         cid: res.data.cid,
         mimeType: newUserBanner.mime,
       }
-    } else {
+    } else if (newUserBanner === null) {
       updates.banner = null
     }
     await this.rootStore.api.app.bsky.actor.updateProfile(updates)