From dc0e15ebbbd6fa06d69caf625f2293b2217025a5 Mon Sep 17 00:00:00 2001 From: nflnkr Date: Sun, 2 Jun 2024 13:34:14 +0300 Subject: [PATCH] fix effect deps --- lib/components/ViewPublicationPage/ResultForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/ViewPublicationPage/ResultForm.tsx b/lib/components/ViewPublicationPage/ResultForm.tsx index 4d32bf9..f6d8b4e 100644 --- a/lib/components/ViewPublicationPage/ResultForm.tsx +++ b/lib/components/ViewPublicationPage/ResultForm.tsx @@ -34,7 +34,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => { useEffect(() => { vkMetrics.resultIdShown(resultQuestion.id); yandexMetrics.resultIdShown(resultQuestion.id); - }, []); + }, [resultQuestion.id, vkMetrics, yandexMetrics]); return (