From 8686861fac28a6d0f267c95eaca44d33b138cbce Mon Sep 17 00:00:00 2001 From: fiatcode Date: Mon, 20 Oct 2025 13:12:32 +0700 Subject: [PATCH] handle empty authorLocation --- src/data/unsplash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/unsplash.ts b/src/data/unsplash.ts index 111ea65..4e323f7 100644 --- a/src/data/unsplash.ts +++ b/src/data/unsplash.ts @@ -20,7 +20,7 @@ async function listRandomImages(count: number = 10): Promise { originUrl: buildUtmUrl(img.links.html), authorName: img.user.name, authorBio: img.user.bio ?? 'No bio', - authorLocation: img.user.location, + authorLocation: img.user.location ?? 'Unknown', authorTotalLikes: img.user.total_likes, authorTotalPhotos: img.user.total_photos, authorIsForHire: img.user.for_hire,