Fix photo date logic check

This commit is contained in:
Sam Becker 2023-12-13 00:45:36 -06:00
parent aab36e2679
commit c12b1ca819

View File

@ -201,7 +201,7 @@ export const dateRangeForPhotos = (
let end = '';
let description = '';
if (explicitDateRange || photos.length >= 0) {
if (explicitDateRange || photos.length > 0) {
const photosSorted = sortPhotosByDate(photos);
start = formatDateFromPostgresString(
explicitDateRange?.start ?? photosSorted[photos.length - 1].takenAtNaive,