Fix infinite scroll length check

This commit is contained in:
Sam Becker 2024-04-27 15:11:06 -05:00
parent 07575169af
commit c0225fc282
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export default async function GridPage() {
? <SiteGrid
contentMain={<div className="space-y-0.5 sm:space-y-1">
<PhotoGrid {...{ photos }} />
{photosCount >= photos.length &&
{photosCount > photos.length &&
<InfinitePhotoScroll
type='grid'
initialOffset={INFINITE_SCROLL_INITIAL_GRID}

View File

@ -39,7 +39,7 @@ export default async function HomePage() {
photos.length > 0
? <div className="space-y-1">
<PhotosLarge {...{ photos }} />
{photosCount >= photos.length &&
{photosCount > photos.length &&
<InfinitePhotoScroll
type="full-frame"
initialOffset={INFINITE_SCROLL_INITIAL_HOME}