diff options
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r-- | src/state/models/me.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts index fb5445cbe..17a372381 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -13,9 +13,9 @@ export class MeModel { async load() { const sess = this.rootStore.session - if (sess.isAuthed) { - this.did = sess.userdid || '' - this.name = sess.username + if (sess.isAuthed && sess.data) { + this.did = sess.data.userdid || '' + this.name = sess.data.username const profile = await this.rootStore.api.todo.social.getProfile({ user: this.did, }) |