From d0eda91f91b9d1465e492b961ee59b0b497c23f5 Mon Sep 17 00:00:00 2001 From: M1kola Date: Mon, 10 Apr 2023 18:49:30 +0300 Subject: [PATCH] fixes --- src/components/CandidateSidebar/CandidateSidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CandidateSidebar/CandidateSidebar.js b/src/components/CandidateSidebar/CandidateSidebar.js index 876a2c10..9f1a9277 100644 --- a/src/components/CandidateSidebar/CandidateSidebar.js +++ b/src/components/CandidateSidebar/CandidateSidebar.js @@ -24,7 +24,7 @@ const getYearsString = (years) => { const CandidateSidebar = ({candidate, setActiveSnippet, activeSnippet}) => { const userId = localStorage.getItem('id'); const showSnippet = () => { - setActiveSnippet((prev) => !prev) + setActiveSnippet(!activeSnippet) }; return (