Skip to content

Commit adbe628

Browse files
authored
Merge pull request #176 from iilj/fix/#175_AllProblemsTable_3000
Fix #175, AllProblemsTable
2 parents 0ba11f2 + 84dc403 commit adbe628

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pages/TablePage/AllProblemsTable.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ export const AllProblemsTable: React.FC<Props> = (props) => {
3535
.filter((a) => a.No !== null)
3636
.sort((a, b) => (a.No as ProblemNo) - (b.No as ProblemNo))
3737
.reduce((prevMap, problem) => {
38-
const key = Math.min(
39-
Math.floor(((problem.No as ProblemNo) - 1) / 100),
40-
29
41-
);
38+
const no = problem.No as ProblemNo;
39+
const key = Math.floor(no < 3000 ? (no - 1) / 100 : no / 100);
4240
if (!prevMap.has(key)) {
4341
prevMap.set(key, []);
4442
}

0 commit comments

Comments
 (0)