     invalidDownloadState =
       tryToDownload: false
       downloadHasError: true
+      finalDownloadUrl: null
 
     invalidDownloadState.downloadUrl = null if @state.downloadUrl is downloadUrl
 

  componentWillMount: ->
    {courseId} = @props
    ScoresExportActions.load(courseId)

  shouldTriggerDownload: (prevState, currentState) ->
    prevState.tryToDownload and not currentState.tryToDownload and not currentState.downloadHasError and currentState.downloadUrl?


  getInitialState: ->
    downloadUrl: null
    finalDownloadUrl: null
    lastExported: null
    tryToDownload: false
    downloadedSinceLoad: false
