diff --git a/src/status_im/contexts/profile/edit/modal/events.cljs b/src/status_im/contexts/profile/edit/modal/events.cljs index c6e0ee661e7..a459c2b1b7f 100644 --- a/src/status_im/contexts/profile/edit/modal/events.cljs +++ b/src/status_im/contexts/profile/edit/modal/events.cljs @@ -36,14 +36,19 @@ (keyword :update-profile-asked key-uid)) (rf/reg-event-fx - :profile/ask-profile-update - (fn [{db :db} [pending-event]] + :profile/set-profile-update-as-asked + (fn [{db :db}] (let [storage-key (-> db :profile/profile :key-uid profile-update-asked-storage-key)] - {:fx [[:effects.async-storage/set {storage-key true}] - [:dispatch - [:show-bottom-sheet - {:content (fn [] - [introduce-yourself/sheet {:pending-event pending-event}])}]]]}))) + {:fx [[:effects.async-storage/set {storage-key true}]]}))) + +(rf/reg-event-fx + :profile/ask-profile-update + (fn [_ [pending-event]] + {:fx [[:profile/set-profile-update-as-asked] + [:dispatch + [:show-bottom-sheet + {:content (fn [] + [introduce-yourself/sheet {:pending-event pending-event}])}]]]})) (rf/reg-event-fx :profile/check-profile-update-prompt diff --git a/src/status_im/contexts/profile/edit/name/view.cljs b/src/status_im/contexts/profile/edit/name/view.cljs index b891c10d0a8..c17ceef348a 100644 --- a/src/status_im/contexts/profile/edit/name/view.cljs +++ b/src/status_im/contexts/profile/edit/name/view.cljs @@ -67,7 +67,8 @@ {:type :primary :customization-color customization-color :on-press (fn [] - (rf/dispatch [:profile/edit-name {:display-name @full-name}])) + (rf/dispatch [:profile/edit-name {:display-name @full-name}]) + (rf/dispatch [:profile/set-profile-update-as-asked])) :disabled? (boolean (or @typing? (string/blank? @full-name) (not (string/blank? @error-msg))))}