diff --git a/src/features/Main/Sidebar/index.jsx b/src/features/Main/Sidebar/index.jsx index 8ece2fc..431ab46 100644 --- a/src/features/Main/Sidebar/index.jsx +++ b/src/features/Main/Sidebar/index.jsx @@ -54,6 +54,7 @@ export const Sidebar = () => { }; const addQueryParam = useInstitutionIdQueryParam(); + const currentSelection = activeTab.replace(/\?institutionId=\d+/, ''); return ( @@ -64,7 +65,7 @@ export const Sidebar = () => { key={link} title={label} path={addQueryParam(link)} - active={activeTab === link} + active={currentSelection === link} onClick={handleTabClick} icon={icon} />