fix: hide strikethrough when all spots are still available

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frank Meeuwsen 2026-03-09 17:18:22 +01:00
parent e13e1e6528
commit a341b31cdb

View file

@ -39,7 +39,9 @@ function Hero() {
</span>
{isSoldOut
? 'Volgeboekt - wachtlijst beschikbaar'
: <><span className="line-through opacity-60">{totalSpots}</span>{' '}{availableSpots} {availableSpots === 1 ? 'plek' : 'plekken'} - kleine groep, persoonlijke aandacht</>
: availableSpots < totalSpots
? <><span className="line-through opacity-60">{totalSpots}</span>{' '}{availableSpots} {availableSpots === 1 ? 'plek' : 'plekken'} - kleine groep, persoonlijke aandacht</>
: <>{totalSpots} {totalSpots === 1 ? 'plek' : 'plekken'} - kleine groep, persoonlijke aandacht</>
}
</span>
</div>