Fix to session load
parent
e6627183e1
commit
9f91edc1d1
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue