[#14718] Fix profile photo in several places
This commit is contained in:
parent
f41c69ff4b
commit
e94898c5ac
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue