diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx index 041af5b..dc8a67d 100644 --- a/src/app/profile/page.tsx +++ b/src/app/profile/page.tsx @@ -27,7 +27,7 @@ import type { UserProfile, UserPreferences, DecisionRecord, FavoriteRecord, Rest function firstImage(r: Restaurant): string { if (r.images?.length > 0) return r.images[0]; // backward compat: old DB records may have `image` instead of `images` - const legacy = (r as Record).image; + const legacy = (r as unknown as Record).image; return typeof legacy === "string" ? legacy : ""; }