fix(#28): disable BreakRule right arrow until selection made

- BreakRuleStep now starts with no selection when not prefilled
- Right arrow disabled and dimmed until a rule is chosen (like game type)
- Keeps auto-advance on clicking a rule

Refs #28
This commit is contained in:
Frank Schwenk
2025-10-30 13:57:05 +01:00
parent 77173718c1
commit 3e2264ad9d
2 changed files with 4 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ export default function NewGameScreen({
<BreakRuleStep
onNext={handleBreakRuleNext}
onCancel={handleStepBack}
initialValue={(data.breakRule as any) || (typeof window !== 'undefined' ? (localStorage.getItem('lastBreakRule') as any) : 'winnerbreak') || 'winnerbreak'}
initialValue={(data.breakRule as any) || (typeof window !== 'undefined' ? (localStorage.getItem('lastBreakRule') as any) : '') || ''}
/>
)}