 
   sendInvitations: (invites, pendingInvites) ->
 
-    return  unless invites.length
+    return @closeConfirmModals()  unless invites.length
 
     remote.api.JInvitation.create invitations: invites, (err) =>
       if err

        title    : title
        duration : 5000

      @confirmModal?.destroy()
      @confirmModal = null
      @resendInvitationConfirmModal?.destroy()
      @resendInvitationConfirmModal = null
      @emit 'NewInvitationsAdded'




    @resendInvitations pendingInvites, newInvitations
    @sendInvitations newInvitations, pendingInvites
    @closeConfirmModals()


  resendInvitations: (invites, newInvitations) ->
