fix: show warning hint when subscription must be selected before wheel spin

When user has 2+ eligible subscriptions and chooses subscription_days
payment, a visible warning hint now appears explaining they need to
select a subscription before spinning.
This commit is contained in:
c0mrade
2026-03-25 16:49:45 +03:00
parent e86b214008
commit 16ccf78c95

View File

@@ -690,6 +690,14 @@ export default function Wheel() {
<p className="text-dark-400">{t('wheel.errors.dailyLimitReached')}</p> <p className="text-dark-400">{t('wheel.errors.dailyLimitReached')}</p>
</div> </div>
)} )}
{/* Subscription selection required hint */}
{!isSpinning && needsSubscriptionPick && (
<div className="rounded-linear border border-warning-500/30 bg-warning-500/5 p-4 text-center">
<p className="text-warning-400">
{t('wheel.errors.selectSubscription', 'Выберите подписку для списания дней')}
</p>
</div>
)}
{/* Inline Result Card */} {/* Inline Result Card */}
{spinResult && !isSpinning && ( {spinResult && !isSpinning && (