diff --git a/frontend/src/screens/ProfileScreen/index.tsx b/frontend/src/screens/ProfileScreen/index.tsx index 60f4042..8b27c3c 100644 --- a/frontend/src/screens/ProfileScreen/index.tsx +++ b/frontend/src/screens/ProfileScreen/index.tsx @@ -82,10 +82,10 @@ export default function ProfileScreen({ navigation }: Props) { useEffect(() => { if (userLogin) { - console.log("Chamando loadUser com userLogin ID:", userLogin.id); loadUser(parseInt(userLogin.id)); + setUserLogin(userLogin) } - }, [userLogin]); + }, []); const updateStorage = async () => { const myUser = { @@ -182,7 +182,7 @@ export default function ProfileScreen({ navigation }: Props) { - +