diff --git a/src/pages/PostOnFeed.jsx b/src/pages/PostOnFeed.jsx index 9cf29c7..ca76175 100644 --- a/src/pages/PostOnFeed.jsx +++ b/src/pages/PostOnFeed.jsx @@ -86,7 +86,9 @@ export default function PostOnFeed({ ad, onEdit, onDelete, onMarkFound, onReopen } }; - const address = ad.address || ad.city || ad.district || ad.location; + // На карточке показываем только город; полный адрес — запасной вариант, + // чтобы у старых объявлений без города не пропала кнопка карты + const address = ad.city || ad.district || ad.address || ad.location; const createdAt = ad.createdAt ? new Date(ad.createdAt).toLocaleDateString("ru-RU") : null;