Measure seven times before cutting
if (locationsCards.length > 0) {
let cardHeight = $(locationsCards[0]).height();
.each(function () {
locationsCardslet currentCardHeight = $(this).height();
if (currentCardHeight > cardHeight) {
= currentCardHeight;
cardHeight
};
})
.each(function () {
locationsCards$(this).height(cardHeight);
;
}) }