Fix exception on my-profile screen (#11313 leftover)

This commit is contained in:
Roman Volosovskyi 2020-10-22 12:23:57 +03:00
parent 70526f9429
commit 320d81432f
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 5 additions and 3 deletions

View File

@ -46,7 +46,7 @@
(callback addr)))))))
(defn get-cached-registrar [chain]
(get @registrars-cache chain))
(get @registrars-cache chain (get old-registrars chain)))
(defn lower-case? [s]
(when s

View File

@ -16,7 +16,8 @@
[status-im.utils.config :as config]
[status-im.utils.gfycat.core :as gfy]
[status-im.utils.universal-links.utils :as universal-links]
[status-im.ui.components.profile-header.view :as profile-header])
[status-im.ui.components.profile-header.view :as profile-header]
[status-im.ethereum.stateofus :as stateofus])
(:require-macros [status-im.utils.views :as views]))
(views/defview share-chat-key []
@ -71,7 +72,8 @@
@(re-frame/subscribe [:multiaccount])
active-contacts-count @(re-frame/subscribe [:contacts/active-count])
tribute-to-talk @(re-frame/subscribe [:tribute-to-talk/profile])
registrar @(re-frame/subscribe [:ens.stateofus/registrar])]
chain @(re-frame/subscribe [:current-network])
registrar (stateofus/get-cached-registrar chain)]
[:<>
[quo/list-item
(cond-> {:title (or (when registrar preferred-name)