fix: the username and picture (#3638)
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
co-authored by
dni ⚡
parent
b4c0cdbc7c
commit
7b635a31e5
@@ -38,12 +38,6 @@ window.app.component('lnbits-header', {
|
||||
customLogoUrl() {
|
||||
return this.USE_CUSTOM_LOGO || null
|
||||
},
|
||||
userPictureUrl() {
|
||||
return this.g.user.extra.picture
|
||||
},
|
||||
hasUserPicture() {
|
||||
return this.g.user && this.g.user.extra && this.g.user.extra.picture != ''
|
||||
},
|
||||
showAdmin() {
|
||||
return this.g.user && (this.g.user.super_user || this.g.user.admin)
|
||||
},
|
||||
@@ -53,6 +47,7 @@ window.app.component('lnbits-header', {
|
||||
displayName() {
|
||||
return (
|
||||
this.g.user?.extra?.display_name ||
|
||||
this.g.user.username ||
|
||||
this.g.user?.extra?.first_name ||
|
||||
'Anon'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user