From d6587d53c385d6863c5dbb5c30a6b258973ff7ac Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:40:19 +0200 Subject: [PATCH] improve UX over login redirects --- src/pages/index.tsx | 2 +- src/pages/videos.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 465c41b..1f58631 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -62,7 +62,7 @@ const Home: NextPage = () => {
Log in diff --git a/src/pages/videos.tsx b/src/pages/videos.tsx index b8e69a4..51b6568 100644 --- a/src/pages/videos.tsx +++ b/src/pages/videos.tsx @@ -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 (