We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c16857f commit 14e3107Copy full SHA for 14e3107
pages/dashboard.tsx
@@ -7,18 +7,15 @@ export default function DashboardPage() {
7
const { isLoaded, isSignedIn } = useUser()
8
const router = useRouter()
9
10
- // If not loaded yet, show loading page
11
if (!isLoaded) {
12
return <LoadingPage />
13
}
14
15
- // If user is not signed in, redirect to sign-in
16
if (!isSignedIn) {
17
router.push('/sign-in')
18
return null
19
20
21
- // If user is signed in, show loading page (which will redirect to home)
22
23
24
0 commit comments