Fix PlaceAvatar showing inherited photo from previous place

This commit is contained in:
Maurice
2026-03-24 21:48:06 +01:00
parent d0d39d1e35
commit 763c878dab

View File

@@ -9,7 +9,7 @@ export default function PlaceAvatar({ place, size = 32, category }) {
useEffect(() => {
if (place.image_url) { setPhotoSrc(place.image_url); return }
if (!place.google_place_id) return
if (!place.google_place_id) { setPhotoSrc(null); return }
if (googlePhotoCache.has(place.google_place_id)) {
setPhotoSrc(googlePhotoCache.get(place.google_place_id))