From 3fde0d119be3e1a1a2b04099f3472fff3aee6f32 Mon Sep 17 00:00:00 2001 From: Pedro Sanders Date: Thu, 7 Dec 2023 07:38:37 -0500 Subject: [PATCH] fix: redirect to /login if user is not signed in --- mods/frontoffice/src/containers/HomeContainer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/frontoffice/src/containers/HomeContainer.tsx b/mods/frontoffice/src/containers/HomeContainer.tsx index 5e3f630..420a01c 100644 --- a/mods/frontoffice/src/containers/HomeContainer.tsx +++ b/mods/frontoffice/src/containers/HomeContainer.tsx @@ -39,6 +39,7 @@ function HomeContainer() { if (!client) { signOut(); + window.location.href = "/login"; return; }