diff --git a/web/app/master/page.tsx b/web/app/master/page.tsx index feb7045..aac8204 100644 --- a/web/app/master/page.tsx +++ b/web/app/master/page.tsx @@ -94,30 +94,6 @@ export default function MasterPage() { setLastCalled(next); }, [state]); - const handleToggleNumber = useCallback( - (num: number) => { - if (!state) return; - if (calledSet.has(num)) { - // Uncall: remove from called, add back to remaining - setState({ - called: state.called.filter((n) => n !== num), - remaining: [...state.remaining, num], - }); - if (lastCalled === num) { - const newCalled = state.called.filter((n) => n !== num); - setLastCalled(newCalled.length > 0 ? newCalled[newCalled.length - 1] : null); - } - } else { - // Manual call: add to called, remove from remaining - setState({ - called: [...state.called, num], - remaining: state.remaining.filter((n) => n !== num), - }); - setLastCalled(num); - } - }, - [state, calledSet, lastCalled] - ); return (
@@ -142,7 +118,7 @@ export default function MasterPage() {