Fix to session load
parent
e6627183e1
commit
9f91edc1d1
|
@ -13,9 +13,9 @@ export class MeModel {
|
||||||
|
|
||||||
async load() {
|
async load() {
|
||||||
const sess = this.rootStore.session
|
const sess = this.rootStore.session
|
||||||
if (sess.isAuthed) {
|
if (sess.isAuthed && sess.data) {
|
||||||
this.did = sess.userdid || ''
|
this.did = sess.data.userdid || ''
|
||||||
this.name = sess.username
|
this.name = sess.data.username
|
||||||
const profile = await this.rootStore.api.todo.social.getProfile({
|
const profile = await this.rootStore.api.todo.social.getProfile({
|
||||||
user: this.did,
|
user: this.did,
|
||||||
})
|
})
|
||||||
|
|
|
@ -167,7 +167,6 @@ export const MobileShell: React.FC = observer(() => {
|
||||||
opacity: interpolate(swipeGestureInterp.value, [0, 1.0], [0.6, 0.0]),
|
opacity: interpolate(swipeGestureInterp.value, [0, 1.0], [0.6, 0.0]),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
console.log('authed?', store.session.isAuthed)
|
|
||||||
if (!store.session.isAuthed) {
|
if (!store.session.isAuthed) {
|
||||||
return (
|
return (
|
||||||
<LinearGradient
|
<LinearGradient
|
||||||
|
|
Loading…
Reference in New Issue