unlockedAnswers.length

dev_forum
hjm 5 years ago
parent c96ad91ac1
commit 26989c034d

@ -28,7 +28,7 @@ class CodeEvaluateMultiLevelAnswerUnlock extends Component {
} }
render() { render() {
const { shixun, challenge, lockedAnswers } = this.props; const { shixun, challenge, lockedAnswers, unlockedAnswers } = this.props;
const { currentLevel } = this.state; const { currentLevel } = this.state;
return ( return (
<div className="answerMultiLevelUnlock"> <div className="answerMultiLevelUnlock">
@ -85,7 +85,7 @@ class CodeEvaluateMultiLevelAnswerUnlock extends Component {
<Radio onClick={() => this.onLevelClick(item, index)} <Radio onClick={() => this.onLevelClick(item, index)}
checked={currentLevel>=index}></Radio> checked={currentLevel>=index}></Radio>
</div> </div>
<div className="twoSpanCol">{index + 1}</div> <div className="twoSpanCol">{index + 1 + (unlockedAnswers && unlockedAnswers.length || 0) }</div>
<div className="autoCol">{item.name}</div> <div className="autoCol">{item.name}</div>
<div className="fourSpanCol">{item.score}%</div> <div className="fourSpanCol">{item.score}%</div>
<div className="fourSpanCol goldColor">{challenge.score * item.score / 100}</div> <div className="fourSpanCol goldColor">{challenge.score * item.score / 100}</div>

Loading…
Cancel
Save