diff --git a/src/status_im/qr_scanner/handlers.cljs b/src/status_im/qr_scanner/handlers.cljs index 0a4d049fbe..6a6452ffd1 100644 --- a/src/status_im/qr_scanner/handlers.cljs +++ b/src/status_im/qr_scanner/handlers.cljs @@ -36,4 +36,6 @@ (register-handler :set-qr-code (-> (u/side-effect! handle-qr-request) ((enrich clear-qr-request)) - ((after #(dispatch [:navigate-back]))))) + ((after (fn [{:keys [view-id]}] + (when (= :qr-scanner view-id) + (dispatch [:navigate-back])))))))