From 25e7fdd1b578aaea319ed8c51ee106d63185c790 Mon Sep 17 00:00:00 2001 From: Benjamin POCHAT Date: Mon, 2 Dec 2024 21:11:35 +0100 Subject: [PATCH] =?UTF-8?q?Pas=20de=20message=20d'erreur=20si=20je=20me=20?= =?UTF-8?q?connecte=20avec=20un=20compte=20client=20et=20que=20j'acc=C3=A8?= =?UTF-8?q?de=20=C3=A0=20l'espace=20producteur=20#53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/app/src/layouts/producer/AuthenticatedLayout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/src/layouts/producer/AuthenticatedLayout.tsx b/frontend/app/src/layouts/producer/AuthenticatedLayout.tsx index 3441474..90c7dc5 100644 --- a/frontend/app/src/layouts/producer/AuthenticatedLayout.tsx +++ b/frontend/app/src/layouts/producer/AuthenticatedLayout.tsx @@ -100,11 +100,11 @@ export default function AuthenticatedLayout() { if (!authenticationService.isAuthenticated()) { return - } - if (authenticatedAsCustomer) { + } else if (authenticatedAsCustomer) { return + } else { + return getAuthenticatedLayout() } - return getAuthenticatedLayout() } export async function loadAuthenticatedLayoutData(keycloak): Promise<{isAuthenticatedAsCustomer: boolean, environmentType: {label: String, color: String} | undefined}> {