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) => {
5858 false
5959 ) ;
6060 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-
6861 const userRatingInfo = useRatingInfo ( props . userId ) ;
6962 const contestToProblems =
7063 useContestToMergedProblems ( ) ?? new Map < ContestId , MergedProblem [ ] > ( ) ;
@@ -88,6 +81,12 @@ export const TablePage: React.FC<OuterProps> = (props) => {
8881 filteredSubmissions ,
8982 props . userId
9083 ) ;
84+
85+ const selectedContestCategories = [ activeTab ] ;
86+ const likeContestCategory = getLikeContestCategory ( activeTab ) ;
87+ if ( likeContestCategory && mergeLikeContest ) {
88+ selectedContestCategories . push ( likeContestCategory ) ;
89+ }
9190 const filteredContests =
9291 contests ?. filter ( ( c ) =>
9392 selectedContestCategories . includes ( classifyContest ( c ) )
You can’t perform that action at this time.
0 commit comments