From c8ae04a14d8996958c6d46b06aefe6c8da4f795d Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 22 Jun 2025 17:35:19 -0500 Subject: [PATCH] Fix null checks on focal length --- src/photo/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: