Make untitled photo meta consistent

This commit is contained in:
Sam Becker 2025-04-18 15:36:07 -05:00
parent b7e4a60b9f
commit e299c6d2af

View File

@ -209,7 +209,7 @@ export const translatePhotoId = (id: string) =>
export const titleForPhoto = (
photo: Photo,
preferDateOverUntitled?: boolean,
preferDateOverUntitled = true,
) => {
if (photo.title) {
return photo.title;
@ -217,7 +217,7 @@ export const titleForPhoto = (
return formatDate({
date: photo.takenAt || photo.createdAt,
length: 'tiny',
});
}).toLocaleUpperCase();
} else {
return 'Untitled';
}