Skip to content

Commit 93950a9

Browse files
authored
Merge pull request #1092 from MtSaka/master
UserPageのPieChartsでABC-Exのバグを修正
2 parents 7f3ff66 + bb8161c commit 93950a9

File tree

1 file changed

+3
-2
lines changed
  • atcoder-problems-frontend/src/pages/UserPage/PieChartBlock

1 file changed

+3
-2
lines changed

atcoder-problems-frontend/src/pages/UserPage/PieChartBlock/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ const solvedCountForPieChart = (
5353
case "G": {
5454
return 6;
5555
}
56-
case "H": {
56+
case "H":
57+
case "Ex": {
5758
return 7;
5859
}
5960
default: {
@@ -185,7 +186,7 @@ const PieCharts: React.FC<PieChartsProps> = ({ problems, title }) => (
185186
</Row>
186187
<Row className="my-3">
187188
{problems.map(({ solved, rejected, total }, i) => {
188-
const key = "ABCDEFGH".charAt(i);
189+
const key = i <= 6 ? "ABCDEFG".charAt(i) : "H/Ex";
189190
return (
190191
<Col
191192
key={key}

0 commit comments

Comments
 (0)