Merge branch 'master' into feat/inventory

This commit is contained in:
Zach Harding
2026-03-25 08:43:18 -04:00
7 changed files with 130 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ const calculatedAt = (() => {
const dates = card.prices
.map(p => p.calculatedAt)
.filter(d => d)
.map(d => new Date(d));
.map(d => new Date(d!));
if (!dates.length) return null;
return new Date(Math.max(...dates.map(d => d.getTime())));
})();
@@ -201,11 +201,11 @@ const altSearchUrl = (card: any) => {
data-name={card?.productName}
>
<img
src={`/cards/${card?.productId}.jpg`}
src={`/static/cards/${card?.productId}.jpg`}
class="card-image w-100 img-fluid rounded-4"
alt={card?.productName}
crossorigin="anonymous"
onerror="this.onerror=null; this.src='/cards/default.jpg'; this.closest('.image-grow, .card-image-wrap')?.setAttribute('data-default','true')"
onerror="this.onerror=null; this.src='/static/cards/default.jpg'; this.closest('.image-grow, .card-image-wrap')?.setAttribute('data-default','true')"
onclick="copyImage(this); dataLayer.push({'event': 'copiedImage'});"
/>
</div>