From f183521e90d51ba341c6946d8d8b3dc7cafbfcd3 Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Fri, 26 Apr 2024 19:16:47 +0200 Subject: [PATCH] test: adding production logging for testing --- src/components/layout/header/AvatarMenu.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/layout/header/AvatarMenu.tsx b/src/components/layout/header/AvatarMenu.tsx index 00e1fa94457..0d70a7f0853 100644 --- a/src/components/layout/header/AvatarMenu.tsx +++ b/src/components/layout/header/AvatarMenu.tsx @@ -68,11 +68,12 @@ export const AvatarMenu = () => { onClick={() => { signOut({ redirect: false, - }).then(() => + }).then(() => { + alert(env.NEXT_PUBLIC_LOGOUT_REDIRECT_URL ?? "this bish empty, yeet"); env.NEXT_PUBLIC_LOGOUT_REDIRECT_URL ? window.location.assign(env.NEXT_PUBLIC_LOGOUT_REDIRECT_URL) - : window.location.reload() - ); + : window.location.reload(); + }); }} > {t('actions.avatar.logout', {