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 = () => {
3535 const scrollY = window . scrollY
3636 const visibleHeight = window . innerHeight
3737 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 ) ) {
4141 // Scroll near bottom
4242 setCurrentPage ( prev => {
4343 const maxPages = Math . ceil ( matches . length / itemsPerPage )
You can’t perform that action at this time.
0 commit comments