(null)
+ const [mounted, setMounted] = useState(false)
useEffect(() => {
- setMounted(true);
- setPubkey(window.localStorage.getItem('pubkey'));
- }, []);
+ setMounted(true)
+ setPubkey(window.localStorage.getItem("pubkey"))
+ }, [])
// Prevent hydration mismatch by not rendering auth-dependent content until mounted
if (!mounted) {
@@ -26,12 +26,13 @@ export function TopNavigation() {
- );
+ )
}
return (
@@ -40,6 +41,7 @@ export function TopNavigation() {
)
-}
\ No newline at end of file
+}
+