Skip to content

Commit 4bd8c27

Browse files
committed
Add third condition in conditonal rendering
1 parent 2b7451e commit 4bd8c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/masonry/MasonryGrid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function MasonryGrid({ masonryType }) {
2020

2121
return (
2222
<>
23-
{inAlbumPage && masonryPhotos.length === 0 ? (
23+
{inAlbumPage && masonryPhotos.length === 0 && !masonryType ? (
2424
<VStack width={"100%"}>
2525
<Image src="/empty_state_album.svg" alt="" />
2626
<Heading size={"md"} fontWeight={"normal"}>

0 commit comments

Comments
 (0)