Skip to content

Commit

Permalink
auth: fix window undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrakuscek committed Apr 18, 2024
1 parent 90c1dda commit 1b857f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/components/auth-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const AuthWidget: React.FC<{

// If that is the case, the widget will always show the 'login'
// button regardless of status.
if (!auth.loggedIn && window) {
if (!auth.loggedIn && typeof window !== 'undefined') {

return (noLogin ? null : (
(handleLogin) ? (
Expand Down

0 comments on commit 1b857f1

Please sign in to comment.