From 65189685d3d186809115fac8cc3a22650f2b7c12 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Fri, 16 Jun 2023 21:40:12 +0200 Subject: [PATCH] fix ERR_INVALID_URL --- components/login-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/login-button.tsx b/components/login-button.tsx index 8cf2593..2b965e5 100644 --- a/components/login-button.tsx +++ b/components/login-button.tsx @@ -20,7 +20,7 @@ export function LoginButton({ }: LoginButtonProps) { const [isLoading, setIsLoading] = React.useState(false) const searchParams = useSearchParams() - const next = searchParams.get('next') + const next = searchParams.get('next') || '' return (