From e94898c5ac4c81c8195b1c766d630fa18c0b3d69 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 26 Jan 2023 09:49:36 +0100 Subject: [PATCH] [#14718] Fix profile photo in several places --- src/react_native/fast_image.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/react_native/fast_image.cljs b/src/react_native/fast_image.cljs index 3f86b501bd..0f7fae90c3 100644 --- a/src/react_native/fast_image.cljs +++ b/src/react_native/fast_image.cljs @@ -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))