fix navigation after qr scanning

This commit is contained in:
Roman Volosovskyi 2017-01-04 14:03:28 +02:00
parent a0d8c22f84
commit a95b307810
1 changed files with 3 additions and 1 deletions

View File

@ -36,4 +36,6 @@
(register-handler :set-qr-code (register-handler :set-qr-code
(-> (u/side-effect! handle-qr-request) (-> (u/side-effect! handle-qr-request)
((enrich clear-qr-request)) ((enrich clear-qr-request))
((after #(dispatch [:navigate-back]))))) ((after (fn [{:keys [view-id]}]
(when (= :qr-scanner view-id)
(dispatch [:navigate-back])))))))