diff --git a/frontend/src/uxbox/main/data/users.cljs b/frontend/src/uxbox/main/data/users.cljs index f1c2a46be..cc104fd9f 100644 --- a/frontend/src/uxbox/main/data/users.cljs +++ b/frontend/src/uxbox/main/data/users.cljs @@ -15,6 +15,7 @@ [uxbox.main.repo :as rp] [uxbox.util.i18n :as i18n :refer [tr]] [uxbox.util.storage :refer [storage]] + [uxbox.util.avatars :as avatars] [uxbox.util.theme :as theme])) ;; --- Common Specs @@ -48,9 +49,10 @@ (ptk/reify ::profile-fetched ptk/UpdateEvent (update [_ state] - (assoc state :profile (cond-> data - (nil? (:lang data)) (assoc :lang cfg/default-language) - (nil? (:theme data)) (assoc :theme cfg/default-theme)))) + (let [profile (avatars/assign data)] + (assoc state :profile (cond-> profile + (nil? (:lang data)) (assoc :lang cfg/default-language) + (nil? (:theme data)) (assoc :theme cfg/default-theme))))) ptk/EffectEvent (effect [_ state stream] diff --git a/frontend/src/uxbox/main/ui/settings/profile.cljs b/frontend/src/uxbox/main/ui/settings/profile.cljs index 82c901397..a4eaa7e3d 100644 --- a/frontend/src/uxbox/main/ui/settings/profile.cljs +++ b/frontend/src/uxbox/main/ui/settings/profile.cljs @@ -58,7 +58,6 @@ (let [locale (i18n/use-locale) form (fm/use-form ::profile-form #(deref refs/profile)) data (:data form)] - (prn "data" form) [:form.profile-form {:on-submit #(on-submit % form)} [:span.settings-label (t locale "settings.profile.section-basic-data")]