From a70b7fe29c18ef390d2b956313927e113d4d2998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Wed, 29 Jun 2022 15:58:55 -0300 Subject: [PATCH] Fix crash when refresh class page --- src/AuthenticatedApp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AuthenticatedApp.js b/src/AuthenticatedApp.js index de87f12..1244c34 100644 --- a/src/AuthenticatedApp.js +++ b/src/AuthenticatedApp.js @@ -96,7 +96,10 @@ const menuOptions = activePath => [ unselectedIcon: , pathname: '/home', isActive: - activePath === '/home' || activePath === '/login' || activePath === '/', + activePath === '/home' || + activePath === '/login' || + activePath === '/' || + activePath.indexOf('class') !== -1, }, { id: 1,