fix: auto-advance on new-game selections

Advance the wizard immediately when selecting game type, break rule, race-to quick picks, and completed break-order choices for a consistent tap-first flow.

Made-with: Cursor
This commit is contained in:
Frank Schwenk
2026-04-14 15:28:52 +02:00
parent ed7c6232c1
commit 55cba1495f
4 changed files with 16 additions and 2 deletions
@@ -27,10 +27,17 @@ export const BreakOrderStep = ({ players, rule, onNext, onCancel, initialFirst =
const handleFirst = (idx: number) => {
setFirst(idx);
const isImmediateFlow = rule !== 'wechselbreak' || playerCount !== 3;
if (isImmediateFlow) {
onNext(idx);
}
};
const handleSecond = (idx: number) => {
setSecond(idx);
if (rule === 'wechselbreak' && playerCount === 3 && first > 0) {
onNext(first, idx);
}
};
const handleSubmit = (e: Event) => {