improve UX over login redirects

This commit is contained in:
MarconLP 2023-04-20 10:40:19 +02:00
parent af393b7b6f
commit d6587d53c3
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ const Home: NextPage = () => {
</div>
<div className="hidden lg:flex lg:flex-1 lg:justify-end">
<Link
href="/videos"
href="/sign-in"
className="text-sm font-semibold leading-6 text-gray-900"
>
Log in <span aria-hidden="true">&rarr;</span>

View file

@ -17,7 +17,7 @@ const VideoList: NextPage = () => {
const { data: videos, isLoading } = api.video.getAll.useQuery();
if (status === "unauthenticated") {
void router.push("/sign-in");
void router.replace("/sign-in");
}
return (