Skip to content

Commit

Permalink
fix: restore callback after merge conflict mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
SeDemal committed Apr 24, 2024
1 parent 997f140 commit 7796b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/layout/header/AvatarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Link from 'next/link';
import { forwardRef } from 'react';
import { useColorScheme } from '~/hooks/use-colorscheme';

import { env } from '~/env';
import { useBoardLink } from '../Templates/BoardLayout';

export const AvatarMenu = () => {
Expand Down Expand Up @@ -66,7 +67,8 @@ export const AvatarMenu = () => {
color="red"
onClick={() =>
signOut({
redirect: false,
callbackUrl: env.NEXT_PUBLIC_LOGOUT_REDIRECT_URL ?? "/",
redirect: env.NEXT_PUBLIC_LOGOUT_REDIRECT_URL != undefined,
}).then(() => window.location.reload())
}
>
Expand Down
2 changes: 1 addition & 1 deletion src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const env = createEnv({
AUTH_OIDC_OWNER_GROUP: z.string().default('admin'),
AUTH_OIDC_AUTO_LOGIN: zodParsedBoolean(),
AUTH_OIDC_SCOPE_OVERWRITE: z.string().default('openid email profile groups'),
AUTH_OIDC_TIMEOUT: numberSchema.default(3500),
AUTH_OIDC_TIMEOUT: numberSchema.default("3500"),
}
: {}),
},
Expand Down

0 comments on commit 7796b0e

Please sign in to comment.