Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hj940709 committed Dec 4, 2024
1 parent 0f626d8 commit 7a18897
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/components/Lessons/LessonLibrary/LessonListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const LessonTitle = ({ lesson, selected, disabled, toggleTopic, includeLesson, e
const correct = topic2info[lesson_topics[k]] != undefined ? topic2info[lesson_topics[k]].correct : 0
const total = topic2info[lesson_topics[k]] != undefined ? topic2info[lesson_topics[k]].total : 0
const color = {color: get_lesson_performance_style(correct, total)}
const name = topic2info[lesson_topics[k]].topic
topic_rows.push(
<h6
key={k}
Expand Down Expand Up @@ -130,7 +131,7 @@ const LessonTitle = ({ lesson, selected, disabled, toggleTopic, includeLesson, e
</span>
</div>
<div className="lesson-content" style={{ width: '80%' }}>
{lesson_topics[k].charAt(0).toUpperCase() + lesson_topics[k].slice(1)}
{name.charAt(0).toUpperCase() + name.slice(1)}
</div>
</h6>
)
Expand Down

0 comments on commit 7a18897

Please sign in to comment.