       admins: admins
       title : title
       success: ->
-        handleInvitationRequest invitations, resendInvitations
+        if alreadyMemberInvitations.size
+          notifyAlreadyMemberInvitations invitations, resendInvitations, alreadyMemberInvitations
+        else
+          handleInvitationRequest invitations, resendInvitations
         modal.destroy()
       cancel: ->
         modal.destroy()

remote          = require('app/remote').getInstance()
AdminInviteModalView = require './admininvitemodalview'
ResendInvitationConfirmModal = require './resendinvitationconfirmmodal'
isEmailValid = require 'app/util/isEmailValid'
{ actions : HomeActions } = require 'home/flux'



    return emails

  notifyAlreadyMemberInvitations = (invitations, resendInvitations, alreadyMemberInvitations) ->

    return handleInvitationRequest invitations, resendInvitations  unless alreadyMemberInvitations.size

    alreadyMembers = alreadyMemberInvitations
      .map (i) -> i.get 'email'
      .toArray()

    content = prepareEmailsText alreadyMemberInvitations.toArray()
    content = "<p>#{content} is already a member of your team.</p>"  if alreadyMembers.length is 1
    content = "<p>#{content} are already members of your team.</p>"  if alreadyMembers.length > 1
    console.log {content}
    modal = new AlreadyMemberInvitationsModal
      alreadyMembers: alreadyMembers
      content: content
      success: ->
        handleInvitationRequest invitations, resendInvitations
        modal.destroy()


  render: ->

