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.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts
index a64c07339..2cb481936 100644
--- a/src/state/models/profile-view.ts
+++ b/src/state/models/profile-view.ts
@@ -111,10 +111,7 @@ export class ProfileViewModel {
   }
 
   async updateProfile(fn: (existing?: Profile.Record) => Profile.Record) {
-    if (this.did !== this.rootStore.me.did) {
-      throw new Error('Not your profile!')
-    }
-    await apilib.updateProfile(this.rootStore, fn)
+    await apilib.updateProfile(this.rootStore, this.did, fn)
     await this.refresh()
   }