                 (if (common/find-multiaccount-by-key-uid db key-uid)
                   (multiaccounts.recover/show-existing-multiaccount-alert key-uid)
                   (if paired?
-                    (load-recovery-pin-screen-with-pairings)
+                    (load-recovery-pin-screen)
                     (recovery/load-pair-screen))))
 
               (when (= card-state :blank)

              (set-setup-step card-state)
              (common/hide-connection-sheet)

              (when (and flow
                         (= card-state :init))
                (proceed-setup-with-initialized-card flow instance-uid))

              (when (= card-state :pre-init)
                (if (= flow :import)

            (common/listen-to-hardware-back-button)
            (navigation/navigate-replace :keycard-recovery-pin nil)))

(fx/defn load-pairing
  [{:keys [db]}]
  (let [instance-uid (get-in db [:keycard :application-info :instance-uid])
        pairing-data (or (get-in db [:keycard :pairings (keyword instance-uid)])
                         (get-in db [:keycard :pairings instance-uid]))]
    {:db (update-in db [:keycard :secrets] merge pairing-data)}))

(fx/defn proceed-setup-with-initialized-card
  [{:keys [db] :as cofx} flow instance-uid paired?]
  (log/debug "[keycard] proceed-setup-with-initialized-card"
             "instance-uid" instance-uid)
  (if (= flow :import)
    (navigation/navigate-to-cofx cofx :keycard-recovery-no-key nil)
    (if paired?
      (fx/merge cofx
                (common/listen-to-hardware-back-button)
                (when (= flow :create)
                  (mnemonic/set-mnemonic))
                (when (= flow :recovery)
                  (onboarding/proceed-with-generating-key)))
      (recovery/load-pair-screen cofx))))

(fx/defn navigate-to-keycard-settings
  {:events [:profile.ui/keycard-settings-button-pressed]}
