Skip to content

Commit 14e3107

Browse files
committed
remove unnecessary comments from the loading page
1 parent c16857f commit 14e3107

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pages/dashboard.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@ export default function DashboardPage() {
77
const { isLoaded, isSignedIn } = useUser()
88
const router = useRouter()
99

10-
// If not loaded yet, show loading page
1110
if (!isLoaded) {
1211
return <LoadingPage />
1312
}
1413

15-
// If user is not signed in, redirect to sign-in
1614
if (!isSignedIn) {
1715
router.push('/sign-in')
1816
return null
1917
}
2018

21-
// If user is signed in, show loading page (which will redirect to home)
2219
return <LoadingPage />
2320
}
2421

0 commit comments

Comments
 (0)