diff --git a/components/molecules/AuthSection/auth-section.tsx b/components/molecules/AuthSection/auth-section.tsx index ec45a4e75c..f5f594eff8 100644 --- a/components/molecules/AuthSection/auth-section.tsx +++ b/components/molecules/AuthSection/auth-section.tsx @@ -63,14 +63,10 @@ const AuthSection: React.FC = ({}) => { }; useEffect(() => { - const getUser = async () => { - if (session && !userInfo) { - setUserInfo(session); - } - }; - - getUser(); - }, [userInfo]); + if (session && !userInfo) { + setUserInfo(session); + } + }, [session]); const authMenu = { authed: [ @@ -161,7 +157,7 @@ const AuthSection: React.FC = ({}) => { ) : (
- You do not have any unread notification + You don't have any unread notifications
)}