Merge pull request #95 from SlimusMinus/change-post_map
All checks were successful
deploy-frontend / deploy (push) Successful in 47s
All checks were successful
deploy-frontend / deploy (push) Successful in 47s
changed address on city on post
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user