Skip to content

Commit

Permalink
[Fixes: #9181] Reset edit mailserver on add pressed
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
  • Loading branch information
cammellos committed Dec 1, 2020
1 parent 92aaa19 commit a4716cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/status_im/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@

(handlers/register-handler-fx
:mailserver.ui/add-pressed
(fn [cofx _]
(navigation/navigate-to-cofx cofx :edit-mailserver nil)))
(fn [{:keys [db] :as cofx} _]
(fx/merge cofx
{:db (dissoc db :mailserver.edit/mailserver)}
(navigation/navigate-to-cofx :edit-mailserver nil))))

(handlers/register-handler-fx
:mailserver.ui/save-pressed
Expand Down

0 comments on commit a4716cc

Please sign in to comment.