Skip to content

Commit d7d6458

Browse files
committed
fix: minor fixes
Signed-off-by: Varun Raj <varun@skcript.com>
1 parent 183a182 commit d7d6458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/albums/list/AlbumThumbnail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function AlbumThumbnail({ album, onSelect, selected }: IAlbumThum
3636
}}
3737
/>
3838
<div className="absolute bottom-0 w-full bg-gray-800/70 text-white text-center text-xs font-bold py-1 group-hover:hidden">
39-
{formatDate(album.firstPhotoDate.toString(), 'MMM d, yyyy')} - {formatDate(album.lastPhotoDate.toString(), 'MMM d, yyyy')}
39+
{album.firstPhotoDate ? formatDate(album.firstPhotoDate?.toString(), 'MMM d, yyyy') : ''} - {album.lastPhotoDate ? formatDate(album.lastPhotoDate?.toString(), 'MMM d, yyyy') : ''}
4040
</div>
4141
<Checkbox
4242
defaultChecked={isSelected}

0 commit comments

Comments
 (0)