From 68578ddc5d7c683b6747e4c51b32f566cb112401 Mon Sep 17 00:00:00 2001 From: ICEYSELF Date: Mon, 29 Apr 2024 11:54:14 +0800 Subject: [PATCH] add 1 missing use hook --- src/components/panels/analysis/ReportPanel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/panels/analysis/ReportPanel.tsx b/src/components/panels/analysis/ReportPanel.tsx index 6f124f51..f3021368 100644 --- a/src/components/panels/analysis/ReportPanel.tsx +++ b/src/components/panels/analysis/ReportPanel.tsx @@ -95,6 +95,8 @@ type Stats = ReturnType; const GameStats = memo( function GameStats({ whiteAnnotations, blackAnnotations }: Stats) { + const { t } = useTranslation(); + const store = useContext(TreeStateContext)!; const goToAnnotation = useStore(store, (s) => s.goToAnnotation);