about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state/models/me.ts6
-rw-r--r--src/view/shell/mobile/index.tsx1
2 files changed, 3 insertions, 4 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,
       })
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index 25ee30e34..837bc6b5e 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -167,7 +167,6 @@ export const MobileShell: React.FC = observer(() => {
     opacity: interpolate(swipeGestureInterp.value, [0, 1.0], [0.6, 0.0]),
   }))
 
-  console.log('authed?', store.session.isAuthed)
   if (!store.session.isAuthed) {
     return (
       <LinearGradient