Skip to content

Commit a31688f

Browse files
committed
better names for a couple of functions
1 parent c6945a6 commit a31688f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/task-step/exercise-multiple-choice.cjsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ ExerciseReview = React.createClass
102102

103103
tryAnother: ->
104104
task_id = TaskStepStore.getTaskId(@getId())
105-
TaskStepActions.getRecovery(@getId())
105+
TaskStepActions.loadRecovery(@getId())
106106
TaskActions.load(task_id)
107107

108-
showTryAnother: ->
108+
canTryAnother: ->
109109
step = TaskStepStore.get(@getId())
110110
return step.has_recovery and step.correct_answer_id isnt step.answer_id
111111

112112
renderFooterButtons: ->
113113
isDisabledClass = 'disabled' unless @isContinueEnabled()
114114
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()
116116
<span>
117117
{tryAnotherButton}
118118
{continueButton}

0 commit comments

Comments
 (0)