use || instead of ??

This commit is contained in:
code002lover 2026-01-19 16:07:58 +01:00
parent 15d3ab79bd
commit c84f617e5c

View File

@ -35,7 +35,7 @@ export function FilteredGamesList({
const positiveCount = gameToPositive.get(game)?.size || 0; const positiveCount = gameToPositive.get(game)?.size || 0;
const neutralCount = selectedPeopleCount - positiveCount; const neutralCount = selectedPeopleCount - positiveCount;
const gameData = games.get(game); const gameData = games.get(game);
const price = gameData?.price ?? 0; const price = gameData?.price || 0;
return ( return (
<Link <Link