 
     TeamFlux.actions.updateTeam(dataToUpdate).then ({ message }) =>
       notify message
-      @setState
-        loading: no
-        teamNameChanged: no
+      @setState { loading: no, teamNameChanged: no }
     .catch ({ message }) =>
       notify message
-      @setState
-        loading: no
-        teamNameChanged: no
+      @setState { loading: no, teamNameChanged: no }
 
 
   onTeamNameChanged: (event) ->
 
-    @setState { teamName : event.target.value }
+    { value } = event.target
 
-    if @state.team.get('title') isnt event.target.value
-      @setState { teamNameChanged: yes }
-    else
-      @setState { teamNameChanged: no }
+    @setState
+      teamName: value
+      teamNameChanged: @state.team.get('title') isnt value
+
 
   onLeaveTeam: (event) ->
 

    reader.readAsDataURL file


  onClickLogo: ->

    @refs.view.input.click()


  onRemoveLogo: ->

    dataToUpdate =
      customize:
        logo: DEFAULT_LOGOPATH
    @updateTeam { dataToUpdate }


  onUpdate: ->

  componentDidMount: ->

    teamName = if @state.team? then Encoder.htmlDecode @state.team.get 'title' else ''
    @setState { teamName: teamName }


  onUploadInput: ->
