Make untitled photo meta consistent
This commit is contained in:
parent
b7e4a60b9f
commit
e299c6d2af
@ -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';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user