fixed duplicate connection

This commit is contained in:
Ren Amamiya
2023-03-01 21:19:31 +07:00
parent 458f826958
commit 3b78123939
8 changed files with 31 additions and 52 deletions

View File

@@ -9,7 +9,7 @@ import { useLocalStorage } from '@rehooks/local-storage';
export default function NavigatorBar() {
const [currentUser]: any = useLocalStorage('current-user');
const profile = currentUser.metadata !== undefined ? JSON.parse(currentUser.metadata) : { display_name: null, username: null };
const profile = JSON.parse(currentUser.metadata);
return (
<div className="flex h-full flex-col flex-wrap justify-between overflow-hidden px-2 pt-3 pb-4">