   [{:keys [db] :as cofx} {:keys [code error]}]
   (log/debug "[hardwallet] install applet and init card error: " error)
   (fx/merge cofx
-            {:db (assoc-in db [:hardwallet :setup-error] error)}
+            {:db (-> db
+                     (assoc-in [:hardwallet :on-card-connected] :hardwallet/load-preparing-screen)
+                     (assoc-in [:hardwallet :setup-error] error))}
             (process-error code error)))
 
 (def on-init-card-error on-install-applet-and-init-card-error)

    (fx/merge cofx
              {:db (-> db
                       (assoc-in [:hardwallet :setup-error] (i18n/label :t/invalid-pairing-password))
                       (assoc-in [:hardwallet :on-card-connected] nil))}
              (when (not= setup-step :enter-pair-code)
                (process-error code error)))))



      (and (= enter-step :login)
           (= 6 numbers-entered))
      (proceed-to-login)

      (and (= enter-step :original)
           (= pin-code-length numbers-entered))
