[#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)
|
(let [loaded? (reagent/atom false)
|
||||||
error? (reagent/atom false)]
|
error? (reagent/atom false)]
|
||||||
(fn [props]
|
(fn [{:keys [source] :as props}]
|
||||||
[fast-image-class
|
[fast-image-class
|
||||||
(merge
|
(merge
|
||||||
props
|
props
|
||||||
{:on-error (fn [e]
|
{:source (if (string? source)
|
||||||
|
{:uri source}
|
||||||
|
source)
|
||||||
|
:on-error (fn [e]
|
||||||
(when-let [on-error (:on-error props)]
|
(when-let [on-error (:on-error props)]
|
||||||
(on-error e))
|
(on-error e))
|
||||||
(reset! error? true))
|
(reset! error? true))
|
||||||
|
|
Loading…
Reference in New Issue