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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user