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 (