diff --git a/src/photo/index.ts b/src/photo/index.ts index 523720fe..42c2451d 100644 --- a/src/photo/index.ts +++ b/src/photo/index.ts @@ -123,11 +123,11 @@ export const parsePhotoFromDb = (photoDbRaw: PhotoDb): Photo => { ...photoDb, tags: photoDb.tags ?? [], focalLengthFormatted: - photoDb.focalLength !== undefined + photoDb.focalLength ? formatFocalLength(photoDb.focalLength) : undefined, focalLengthIn35MmFormatFormatted: - photoDb.focalLengthIn35MmFormat !== undefined + photoDb.focalLengthIn35MmFormat ? formatFocalLength(photoDb.focalLengthIn35MmFormat) : undefined, fNumberFormatted: