Skip to content

Commit 03e8b55

Browse files
committed
fix: avatar change while editing profile color
1 parent 352797b commit 03e8b55

File tree

2 files changed

+7
-7
lines changed
  • src
    • quo/components/profile/profile_card
    • status_im/contexts/profile/edit/accent_colour

2 files changed

+7
-7
lines changed

src/quo/components/profile/profile_card/view.cljs

+5-6
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@
5454
[rn/view
5555
{:style style/card-header}
5656
[user-avatar/user-avatar
57-
{:full-name name
58-
:profile-picture profile-picture
59-
:size :medium
60-
:status-indicator? false
61-
:customization-color customization-color
62-
:static? true}]
57+
{:full-name name
58+
:profile-picture profile-picture
59+
:size :medium
60+
:status-indicator? false
61+
:static? true}]
6362
[rn/view {:flex-direction :row}
6463
(when show-logged-in?
6564
[tag/tag

src/status_im/contexts/profile/edit/accent_colour/view.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
unsaved-custom-color (reagent/atom customization-color constants/profile-default-color)
1717
on-change #(reset! unsaved-custom-color %)]
1818
(fn [{:keys [customization-color]}]
19-
(let [profile (rf/sub [:profile/profile-with-image])
19+
(let [profile (rf/sub [:profile/profile-with-image
20+
{:customization-color @unsaved-custom-color}])
2021
profile-picture (profile.utils/photo profile)
2122
display-name (profile.utils/displayed-name profile)]
2223
(rn/use-effect

0 commit comments

Comments
 (0)