fix ERR_INVALID_URL

This commit is contained in:
Shu Ding 2023-06-16 21:40:12 +02:00
parent 3c71b3679a
commit 65189685d3
No known key found for this signature in database
GPG key ID: C39970877C25D6DD

View file

@ -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 (
<Button