Fix null checks on focal length

This commit is contained in:
Sam Becker 2025-06-22 17:35:19 -05:00
parent da9d0ab54b
commit c8ae04a14d

View File

@ -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: