From 85a8a353998573490d43a602d4fdbd09afe5ba00 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 24 Sep 2018 12:54:24 +0300 Subject: [PATCH] [#5938] [desktop] switch editing mode when leaving profile --- src/status_im/ui/screens/desktop/main/tabs/profile/views.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/status_im/ui/screens/desktop/main/tabs/profile/views.cljs b/src/status_im/ui/screens/desktop/main/tabs/profile/views.cljs index e737b456b2..ce12c8ba26 100644 --- a/src/status_im/ui/screens/desktop/main/tabs/profile/views.cljs +++ b/src/status_im/ui/screens/desktop/main/tabs/profile/views.cljs @@ -121,4 +121,6 @@ (views/defview profile-data [] (views/letsubs [user [:get-current-account]] + {:component-will-unmount + #(re-frame/dispatch [:set :my-profile/editing? false])} [profile user]))