 
   onUploadInput: ->
 
+    [file] = @refs.view.input.files
 
-    [file] = @refs.view.input.files
     return  unless file
     @setState { loading: yes }
     reader = new FileReader

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


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


  onUpdate: ->

      name = "#{@state.team.get 'slug'}-logo-#{Date.now()}.png"
      mimeType = file.type
      content = file

      TeamFlux.actions.uploads3({ name, content, mimeType })
      .then ({ url }) =>
        dataToUpdate =
