Fix for empty display-name (#15122)

This commit is contained in:
Vitaliy Vlasov 2023-02-20 11:07:38 +02:00 committed by GitHub
parent fb155ea4bd
commit bea93f4a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -68,9 +68,10 @@
(defn displayed-name
"Use preferred name, display-name, name or alias in that order"
[{:keys [name display-name preferred-name alias public-key ens-verified]}]
(let [ens-name (or preferred-name
display-name
name)]
(let [display-name (if (string/blank? display-name) nil display-name)
ens-name (or preferred-name
display-name
name)]
;; Preferred name is our own otherwise we make sure it's verified
(if (or preferred-name (and ens-verified name))
(let [username (stateofus/username ens-name)]