diff --git a/src/photo/index.ts b/src/photo/index.ts index 64dceac8..94bb6162 100644 --- a/src/photo/index.ts +++ b/src/photo/index.ts @@ -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'; }