Fix TypeScript error in WheelLegend

Remove prize.value reference - WheelPrize type doesn't contain value field
(only display_name, emoji, color, prize_type)
This commit is contained in:
c0mrade
2026-02-03 23:47:22 +03:00
parent f6feb592d2
commit b6561f32b3

View File

@@ -43,15 +43,6 @@ const WheelLegend = memo(function WheelLegend({ prizes }: WheelLegendProps) {
<div className="min-w-0 flex-1">
<div className="truncate text-sm font-medium text-dark-100">{prize.display_name}</div>
</div>
{/* Prize value (if applicable) */}
{prize.prize_type !== 'nothing' && prize.value && (
<div className="shrink-0 text-xs text-dark-400">
{prize.prize_type === 'balance' && `${prize.value}`}
{prize.prize_type === 'subscription_days' && `${prize.value}д`}
{prize.prize_type === 'promocode' && '🎫'}
</div>
)}
</div>
);
})}