Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrakuscek committed Apr 18, 2024
1 parent 6e37dda commit 1d5cf48
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 @@ -62,7 +62,7 @@ const AuthWidget: React.FC<{
) : (
<LinkElement
def={{
href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window.location.href}`,
href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window ? window.location.href : ''}`,
title: 'Login',
variant: 'primary',
newTab: false
Expand Down

0 comments on commit 1d5cf48

Please sign in to comment.