fix: hide strikethrough when all spots are still available
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e13e1e6528
commit
a341b31cdb
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue