From 32d3c1b9a0fb6cf27ab66df9f7e285aad7d1bdc7 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 20 Dec 2022 14:57:13 -0300 Subject: [PATCH] Fix logout redirect bug Co-authored-by: Ezequiel Bellver Co-authored-by: Juan Barmasch --- bsition/frontend/src/components/Sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsition/frontend/src/components/Sidebar.tsx b/bsition/frontend/src/components/Sidebar.tsx index 6277f74..d63bf00 100644 --- a/bsition/frontend/src/components/Sidebar.tsx +++ b/bsition/frontend/src/components/Sidebar.tsx @@ -130,7 +130,7 @@ const Sidebar = () => { }); localStorage.removeItem("token") - router.push("/") + router.push("/login") } return (