File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
atcoder-problems-frontend/src/pages/TablePage Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,6 @@ export const TablePage: React.FC<OuterProps> = (props) => {
58
58
false
59
59
) ;
60
60
const [ selectedLanguages , setSelectedLanguages ] = useState ( new Set < string > ( ) ) ;
61
-
62
- const selectedContestCategories = [ activeTab ] ;
63
- const likeContestCategory = getLikeContestCategory ( activeTab ) ;
64
- if ( likeContestCategory && mergeLikeContest ) {
65
- selectedContestCategories . push ( likeContestCategory ) ;
66
- }
67
-
68
61
const userRatingInfo = useRatingInfo ( props . userId ) ;
69
62
const contestToProblems =
70
63
useContestToMergedProblems ( ) ?? new Map < ContestId , MergedProblem [ ] > ( ) ;
@@ -88,6 +81,12 @@ export const TablePage: React.FC<OuterProps> = (props) => {
88
81
filteredSubmissions ,
89
82
props . userId
90
83
) ;
84
+
85
+ const selectedContestCategories = [ activeTab ] ;
86
+ const likeContestCategory = getLikeContestCategory ( activeTab ) ;
87
+ if ( likeContestCategory && mergeLikeContest ) {
88
+ selectedContestCategories . push ( likeContestCategory ) ;
89
+ }
91
90
const filteredContests =
92
91
contests ?. filter ( ( c ) =>
93
92
selectedContestCategories . includes ( classifyContest ( c ) )
You can’t perform that action at this time.
0 commit comments