                                                                                                                           :org-name (:name selected-org)}])
                                                                                     (close-fn))
                                                                        :disabled (or (empty? (invitees org-members-by-login))
-                                                                                     (not (every? #(utils/valid-email? (:email %)) (invitees org-members-by-login))))}
+                                                                                     (not (every? (comp valid-email? :email) (invitees org-members-by-login))))}
                                               "Send Invites "
                                               [:i.fa.fa-envelope-o]])]
                                   :close-fn close-fn}))

            [frontend.components.pieces.button :as button]
            [frontend.routes :as routes]
            [frontend.state :as state]
            [frontend.utils :as utils :include-macros true]
            [frontend.utils.github :as gh-utils]
            [frontend.utils.vcs :as vcs-utils]
            [goog.string :as gstr]

            (om/set-state! owner
                           :org-members-by-login
                           (into {}
                                 (for [{:keys [login circle_member email id]
                                        :as user} new-vcs-users
                                       :when (not circle_member)
                                       :let [trimmed-email (some-> email gstr/trim)]]
                                   [login {:email trimmed-email
                                           :login login
                                           :id id
                                           :selected (valid-email? trimmed-email)}]))))))
      
      om/IRenderState
      (render-state [_ {:keys [org-members-by-login]}]
