This commit is contained in:
dni ⚡
2024-10-10 09:08:17 +02:00
parent f85fb96063
commit 5f0068bc6d
5 changed files with 88 additions and 87 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ window.app = Vue.createApp({
user_id: this.user.id,
username: this.user.username,
email: this.user.email,
config: this.user.config
extra: this.user.extra
}
)
this.user = data
@@ -183,7 +183,7 @@ window.app = Vue.createApp({
const {data} = await LNbits.api.getAuthenticatedUser()
this.user = data
this.hasUsername = !!data.username
if (!this.user.config) this.user.config = {}
if (!this.user.extra) this.user.extra = {}
} catch (e) {
LNbits.utils.notifyApiError(e)
}