Fix to session load

zio/stable
Paul Frazee 2022-09-28 15:03:02 -05:00
parent e6627183e1
commit 9f91edc1d1
2 changed files with 3 additions and 4 deletions

View File

@ -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,
})

View File

@ -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