fix not showing account for existing users (#2173)
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user