From 0e2dcc174d6589568b1a98972a55d816a0291c46 Mon Sep 17 00:00:00 2001 From: = Date: Sun, 20 Oct 2024 09:43:03 -0300 Subject: [PATCH] =?UTF-8?q?Corrigindo=20BUG=20de=20usu=C3=A1rio=20sem=20o?= =?UTF-8?q?=20nome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/screens/ProfileScreen/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { - +