Skip to content

Commit

Permalink
test: adding production logging for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SeDemal committed Apr 26, 2024
1 parent 664e9ea commit f183521
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/layout/header/AvatarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit f183521

Please sign in to comment.