File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,17 +102,17 @@ ExerciseReview = React.createClass
102
102
103
103
tryAnother : ->
104
104
task_id = TaskStepStore .getTaskId (@ getId ())
105
- TaskStepActions .getRecovery (@ getId ())
105
+ TaskStepActions .loadRecovery (@ getId ())
106
106
TaskActions .load (task_id)
107
107
108
- showTryAnother : ->
108
+ canTryAnother : ->
109
109
step = TaskStepStore .get (@ getId ())
110
110
return step .has_recovery and step .correct_answer_id isnt step .answer_id
111
111
112
112
renderFooterButtons : ->
113
113
isDisabledClass = ' disabled' unless @ isContinueEnabled ()
114
114
continueButton = <BS.Button bsStyle = " primary" className = {isDisabledClass} onClick = {@onContinue }>Continue</BS.Button >
115
- tryAnotherButton = <BS.Button bsStyle = " primary" onClick = {@tryAnother }>Try Another</BS.Button > if @ showTryAnother ()
115
+ tryAnotherButton = <BS.Button bsStyle = " primary" onClick = {@tryAnother }>Try Another</BS.Button > if @ canTryAnother ()
116
116
<span >
117
117
{tryAnotherButton}
118
118
{continueButton}
You can’t perform that action at this time.
0 commit comments