Skip to content

Commit dbf35ae

Browse files
authored
fix: changed pie charts for ABC H&Ex
1 parent f552f01 commit dbf35ae

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ const PieCharts: React.FC<PieChartsProps> = ({ problems, title }) => (
186186
</Row>
187187
<Row className="my-3">
188188
{problems.map(({ solved, rejected, total }, i) => {
189-
const key;
190-
if(i<=6)key = "ABCDEFG".charAt(i);
191-
if(i==7)key = "H/Ex";
189+
const key = (i<=6? "ABCDEFG".charAt(i):"H/Ex");
192190
return (
193191
<Col
194192
key={key}

0 commit comments

Comments
 (0)