File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -104,17 +104,17 @@ const Form = () => {
104104 if ( ! categoryPercentages [ category ] ) return crlRank ;
105105 return Math . round ( crlRank * categoryPercentages [ category ] ) ;
106106 } , [ ] ) ; // Dependencies are correct as it uses categoryPercentages
107-
108- const applySearchFilter = useCallback (
109- (
110- colleges ,
111- categoryRank ,
112- selectedCategory ,
113- selectedGender ,
114- query ,
115- selectedState ,
116- selectedInstitutes
117- ) => {
107+ // eslint-disable-next-line react-hooks/exhaustive-deps
108+ const applySearchFilter = useCallback (
109+ (
110+ colleges ,
111+ categoryRank ,
112+ selectedCategory ,
113+ selectedGender ,
114+ query ,
115+ selectedState ,
116+ selectedInstitutes
117+ ) => {
118118 if ( ! colleges ) return [ ] ;
119119 const lowerCaseQuery = query ? query . toLowerCase ( ) : "" ;
120120 const lowerCaseSelectedState = selectedState
@@ -177,9 +177,9 @@ const Form = () => {
177177 ( parseInt ( a . closingRank , 10 ) || Infinity ) -
178178 ( parseInt ( b . closingRank , 10 ) || Infinity )
179179 ) ;
180- } ,
181- [ selectedCategory , selectedGender , selectedInstitutes ]
182- ) ;
180+ } ,
181+ [ selectedCategory , selectedGender , selectedInstitutes ]
182+ ) ;
183183
184184 const filterByMainBranch = useCallback (
185185 ( colleges , selectedMainBranch ) => {
You can’t perform that action at this time.
0 commit comments