            [:button.btn.btn-success (let [users-to-invite (invitees users)]
                                       {:data-success-text "Sent"
                                        :on-click #(raise! owner [:invited-github-users
-                                                                 (merge {:invitees users-to-invite}
+                                                                 (merge {:invitees users-to-invite
+                                                                         :vcs_type (:vcs_type opts)}
                                                                         (if (:project-name opts)
-                                                                          {:project-name (:project-name opts)
-                                                                           :vcs-type (:vcs-type opts)}
+                                                                          {:project-name (:project-name opts)}
                                                                           {:org-name (:org-name opts)}))])})
 
             "Send Invites "

    om/IWillMount
    (will-mount [_]
      (let [project-name (:project-name opts)
            vcs-type (:vcs-type opts)]
        (raise! owner [:load-first-green-build-github-users {:vcs-type vcs-type
                                                             :project-name project-name}])))
    om/IRender
    (render [_]

  (->> users
       (filter (fn [u] (and (:email u)
                            (:checked u))))
       ;; select both login and id (GitHub) and username and uuid (Bitbucket)
       (map (fn [u] (select-keys u [:email :login :username :id :uuid])))
       vec))

(defn invite-tile [user owner]
