     comment: () ->
         @setResult(null)
 
-
     setQuality: (quality) ->
         () =>
-            await callApi "setQuality/#{@state.currentSubmit._id}/#{quality}", {}
+            await callApi "setQuality/#{@props.currentSubmit._id}/#{quality}", {}
             @props.handleReload()
 
     toggleBestSubmits: (e) ->

        newState[field] = value
        @setState(newState)

    setCurrentSubmit: (submit) ->
        (e) =>
            e.preventDefault()


ConnectedProblemCommentsLists = ConnectedComponent(ProblemCommentsLists, listOptions)

class SubmitWithActions extends React.Component
    constructor: (props) ->
        super(props)
        @state =
            commentText: ""
            bestSubmits: false
        @accept = @accept.bind this
        @ignore = @ignore.bind this
