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 2e50f1c commit 7968daaCopy full SHA for 7968daa
myhaki/src/app/profile/page.tsx
@@ -36,8 +36,8 @@ export default function ProfilePage() {
36
useEffect(() => {
37
const userId = localStorage.getItem('userId');
38
if (!userId) {
39
- setError('User not logged in');
40
- setLoading(false);
+ router.push('/authentication/sign-in');
+ setSuccessMessage(null);
41
return;
42
}
43
fetchUserById(userId)
0 commit comments