fix not showing account for existing users (#2173)
This commit is contained in:
parent
9877ca602f
commit
24b02cc656
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ new Vue({
|
||||||
const {data} = await LNbits.api.getAuthenticatedUser()
|
const {data} = await LNbits.api.getAuthenticatedUser()
|
||||||
this.user = data
|
this.user = data
|
||||||
this.hasUsername = !!data.username
|
this.hasUsername = !!data.username
|
||||||
|
if (!this.user.config) this.user.config = {}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
LNbits.utils.notifyApiError(e)
|
LNbits.utils.notifyApiError(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue