[#14718] Fix profile photo in several places

This commit is contained in:
Roman Volosovskyi 2023-01-26 09:49:36 +01:00
parent f41c69ff4b
commit e94898c5ac
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 5 additions and 2 deletions

View File

@ -14,11 +14,14 @@
[_]
(let [loaded? (reagent/atom false)
error? (reagent/atom false)]
(fn [props]
(fn [{:keys [source] :as props}]
[fast-image-class
(merge
props
{:on-error (fn [e]
{:source (if (string? source)
{:uri source}
source)
:on-error (fn [e]
(when-let [on-error (:on-error props)]
(on-error e))
(reset! error? true))