Skip to content

Commit

Permalink
Fix sub issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Vlasov committed Sep 30, 2019
1 parent 1ee5a73 commit 1a9c1b5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/status_im/subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -222,32 +222,32 @@
(fn [wizard-state]
(merge (select-keys wizard-state [:selected-storage-type :view-height :recovering?])
(if (:recovering? wizard-state)
{:back-action :intro-wizard/step-back-pressed
:forward-action :intro-wizard/step-forward-pressed}
{:back-action :multiaccounts.recover/cancel-pressed
:forward-action :multiaccounts.recover/select-storage-next-pressed}))))
:forward-action :multiaccounts.recover/select-storage-next-pressed}
{:back-action :intro-wizard/step-back-pressed
:forward-action :intro-wizard/step-forward-pressed}))))

(re-frame/reg-sub
:intro-wizard/create-code
:<- [:intro-wizard]
(fn [wizard-state]
(merge (select-keys wizard-state [:confirm-failure? :encrypt-with-password? :weak-password? :view-width])
(if (:recovering? wizard-state)
{:back-action :intro-wizard/step-back-pressed
:forward-action :intro-wizard/step-forward-pressed}
{:back-action :multiaccounts.recover/cancel-pressed
:forward-action :multiaccounts.recover/enter-password-next-pressed}))))
:forward-action :multiaccounts.recover/enter-password-next-pressed}
{:back-action :intro-wizard/step-back-pressed
:forward-action :intro-wizard/step-forward-pressed}))))

(re-frame/reg-sub
:intro-wizard/confirm-code
:<- [:intro-wizard]
(fn [wizard-state]
(merge (select-keys wizard-state [:confirm-failure? :encrypt-with-password? :processing? :view-width])
(if (:recovering? wizard-state)
{:back-action :intro-wizard/step-back-pressed
:forward-action :intro-wizard/step-forward-pressed}
{:back-action :multiaccounts.recover/cancel-pressed
:forward-action :multiaccounts.recover/confirm-password-next-pressed}))))
:forward-action :multiaccounts.recover/confirm-password-next-pressed}
{:back-action :intro-wizard/step-back-pressed
:forward-action :intro-wizard/step-forward-pressed}))))

(re-frame/reg-sub
:intro-wizard/enter-phrase
Expand Down

0 comments on commit 1a9c1b5

Please sign in to comment.