We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 655a6f5 commit 4a628bfCopy full SHA for 4a628bf
packages/app/src/components/AccountMenu.tsx
@@ -24,7 +24,8 @@ export default function AccountMenu() {
24
// Get user data
25
const userData: string | null = localStorage.getItem('user');
26
console.log(userData);
27
- if (userData) {
+ if (userData !== null) {
28
+ console.log("Here")
29
setUser(JSON.parse(userData));
30
setAvatar(user.avatar);
31
setName(user.name);
0 commit comments