diff --git a/src/components/roster.tsx b/src/components/roster.tsx index 9cb1f41..1a1bf2a 100644 --- a/src/components/roster.tsx +++ b/src/components/roster.tsx @@ -5,13 +5,13 @@ import { CivIcon } from './civ-icon' import { PlayedCheck } from './played-check' const RosterItem = ({ civ }: { civ: Civ }) => { - const { hasBeenPlayed } = useCiv(civ) + const { hasBeenPlayed, togglePlayed } = useCiv(civ) const animate = hasBeenPlayed ? ['visible', 'played'] : ['visible'] return ( { initial="hidden" exit="hidden" whileHover="hovered" + onClick={togglePlayed} >