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,7 +68,8 @@
(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
(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