improve UX over login redirects
This commit is contained in:
parent
af393b7b6f
commit
d6587d53c3
2 changed files with 2 additions and 2 deletions
|
|
@ -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">→</span>
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue