   componentDidMount: ->
 
     teamName = if @state.team? then Encoder.htmlDecode @state.team.get 'title' else ''
-    @setState
-      teamName: teamName
+    @setState { teamName: teamName }
 
 
   onUploadInput: ->


    TeamFlux.actions.updateTeam(dataToUpdate).then ({ message }) =>
      notify message
      @setState
        loading: no
        teamNameChanged: no
    .catch ({ message }) =>
      notify message
      @setState
        loading: no
        teamNameChanged: no


  onTeamNameChanged: (event) ->

    @setState { teamName : event.target.value }

    if @state.team.get('title') isnt event.target.value
      @setState { teamNameChanged: yes }
    else
      @setState { teamNameChanged: no }

  onLeaveTeam: (event) ->


    reader.readAsDataURL file


  onClickLogo: -> @refs.view.input.click()


  onRemoveLogo: -> @updateTeam { customize: { logo: DEFAULT_LOGOPATH } }


  onUpdate: ->
