Skip to content

Commit 1d5cf48

Browse files
committed
fix type error
1 parent 6e37dda commit 1d5cf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/components/auth-widget.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const AuthWidget: React.FC<{
6262
) : (
6363
<LinkElement
6464
def={{
65-
href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window.location.href}`,
65+
href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window ? window.location.href : ''}`,
6666
title: 'Login',
6767
variant: 'primary',
6868
newTab: false

0 commit comments

Comments
 (0)