     correctOrIncorrect ?= 'correct'
     count = correctOrIncorrect + '_count'
 
-    total_count = data.correct_count+data.incorrect_count
+    total_count = data.correct_count + data.incorrect_count
     if total_count then @_percent(data[count], total_count) else 0
 
   renderPercentBar: (data, type, correctOrIncorrect) ->

Loadable = require '../loadable'

Stats = React.createClass
  _percent: (num,total) ->
    Math.round((num/total) * 100)

  percentDelta: (a,b) ->
    if a > b
      change = a - b
      op = '+'
    else if a == b
      change = 0
      op = ''
    else


  renderPracticeBars: (data, i) ->
    if data.previous_attempt
      previous =
        <div className="reading-progress-delta">
          {@percentDelta(data.correct_count, data.previous_attempt.correct_count)}% change
        </div>
    @renderProgressBar(data, 'practice', i, previous)

  render: ->
