feat: fixing navbar

This commit is contained in:
hanif salafi 2024-12-31 15:24:25 +07:00
parent 6a475e88a7
commit be8e5def26
1 changed files with 1 additions and 9 deletions

View File

@ -72,15 +72,7 @@ const Navbar = () => {
setLanguage(lang);
setIsOpen(false);
};
const [hasMounted, setHasMounted] = useState(false);
// Hooks
useEffect(() => {
setHasMounted(true);
}, []);
// Render
if (!hasMounted) return null;
useEffect(() => {
async function initState() {
const response = await getInfoProfile();