                                          {:name "bitbucket"
                                           :icon (html [:i.fa.fa-bitbucket])
                                           :label "Bitbucket"}]
-                                  :selected-tab-name vcs-type
+                                  :selected-tab-name selected-vcs-type
                                   :on-tab-click #(navigate! owner (routes/v1-add-projects-path {:_fragment %}))})
           [:div.organizations.card
            (when github-active?

                [:p "GitHub is not connected to your account yet. To connect it, click the button below:"]
                [:a.btn.btn-primary {:href (gh-utils/auth-url)
                                     :on-click #((om/get-shared owner :track-event) {:event-type :authorize-vcs-clicked
                                                                                     :properties {:vcs-type vcs-type}})}
                 "Authorize with GitHub"]]))
           (when (and bitbucket-active?
                      (not bitbucket-authorized?))

              [:p "Bitbucket is not connected to your account yet. To connect it, click the button below:"]
              [:a.btn.btn-primary {:href (bitbucket/auth-url)
                                   :on-click #((om/get-shared owner :track-event) {:event-type :authorize-vcs-clicked
                                                                                   :properties {:vcs-type selected-vcs-type}})}
               "Authorize with Bitbucket"]])
           [:ul.organizations
            (->> orgs
                 (filter (partial select-vcs-type selected-vcs-type))
                 (map (fn [org] (organization org selected-org owner))))]
           (when (get-in user [:repos-loading (keyword selected-vcs-type)])
             [:div.orgs-loading
              [:div.loading-spinner common/spinner]])]])))))

