Skip to content

Commit

Permalink
fix: highlight grade 'O' in green
Browse files Browse the repository at this point in the history
  • Loading branch information
rithask committed May 16, 2024
1 parent 81eeea0 commit 6cc4f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/ResultTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ResultTable = ({ result, updateSemester }) => {
</thead>
<tbody>
{result.results.map(sub => (
<tr key={sub.course} style={{ color: sub.grade === "S" ? "green" : ["F", "AB", "FE"].includes(sub.grade) ? "red" : "inherit" }}>
<tr key={sub.course} style={{ color: ["S", "O"].includes(sub.grade) ? "green" : ["F", "AB", "FE"].includes(sub.grade) ? "red" : "inherit" }}>
<td>{sub.course}</td>
<td>{sub.grade}</td>
</tr>
Expand Down

0 comments on commit 6cc4f4f

Please sign in to comment.