Skip to content

Commit

Permalink
fix the Don't intercept selector not working anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Timtam committed Sep 20, 2024
1 parent 582036c commit 60b9013
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion client/src/pages/game/slot-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,24 @@ export default ({ game }: { game: Game }) => {
type="radio"
defaultValue="0"
value={selectedSlot}
onChange={(e) => setSelectedSlot(e)}
onChange={(e) => {
setSelectedKeySlot(e)
setSelectedSlot(e)

let p = game.players.find(
(p) => p.turn_player,
) as Player

EventManager.publish(Events.slotSelected, {
unavailable: true,
slot: null,
from_year: p.slots[0].to_year,
to_year:
p.slots[p.slots.length - 1]
.from_year,
slot_count: p.slots.length,
} satisfies SlotSelectedData)
}}
>
<ToggleButton
className="me-2 mb-2 border-0"
Expand Down

0 comments on commit 60b9013

Please sign in to comment.