Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
7c805b93
Commit
7c805b93
authored
Mar 13, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cahnges
parent
8cb8d259
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
+1
-6
Private.tsx
src/routes/Private.tsx
+1
-6
No files found.
src/routes/Private.tsx
View file @
7c805b93
...
...
@@ -63,7 +63,6 @@ export default function Private({ children }: { children: React.ReactNode }) {
return
;
}
// If Redux was empty, rehydrate it
if
(
!
token
&&
accessToken
)
{
const
userStr
=
localStorage
.
getItem
(
'user'
);
let
userData
=
user
;
...
...
@@ -91,11 +90,7 @@ export default function Private({ children }: { children: React.ReactNode }) {
}
if
(
!
user
)
{
return
(
<
div
className=
"flex items-center justify-center min-h-[200px] text-white"
>
<
p
>
User Not Found. Please log in again.
</
p
>
</
div
>
);
return
null
;
}
return
<>
{
children
}
</>;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment