File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/apps/talent-search/src/routes/search-results-page Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ const SearchResultsPage: FC = () => {
35
35
const scrollY = window . scrollY
36
36
const visibleHeight = window . innerHeight
37
37
const fullHeight = document . body . scrollHeight
38
- const footerElem = document . getElementById ( " footer-nav-el" ) ;
39
- const footerHeight = footerElem && footerElem . offsetHeight || 650 ;
40
- if ( scrollY + visibleHeight >= fullHeight - footerHeight + 100 ) {
38
+ const footerElem = document . getElementById ( ' footer-nav-el' )
39
+ const footerHeight = ( footerElem && footerElem . offsetHeight ) || 650
40
+ if ( scrollY + visibleHeight >= fullHeight - ( footerHeight + 100 ) ) {
41
41
// Scroll near bottom
42
42
setCurrentPage ( prev => {
43
43
const maxPages = Math . ceil ( matches . length / itemsPerPage )
You can’t perform that action at this time.
0 commit comments