Skip to content

Commit

Permalink
add 1 missing use hook
Browse files Browse the repository at this point in the history
  • Loading branch information
chuigda committed Apr 29, 2024
1 parent 269c426 commit 68578dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/panels/analysis/ReportPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ type Stats = ReturnType<typeof getGameStats>;

const GameStats = memo(
function GameStats({ whiteAnnotations, blackAnnotations }: Stats) {
const { t } = useTranslation();

const store = useContext(TreeStateContext)!;
const goToAnnotation = useStore(store, (s) => s.goToAnnotation);

Expand Down

0 comments on commit 68578dd

Please sign in to comment.