From 8ef998a771172cf4f6f6278df924d211f98f8ae7 Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Thu, 1 Sep 2022 11:15:51 -0600 Subject: [PATCH] fix fetch lista de invitados --- mobile-ui/App.js | 2 +- mobile-ui/components/AreaComun.js | 2 +- mobile-ui/components/Invitados.js | 4 ++-- mobile-ui/components/LogIn.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile-ui/App.js b/mobile-ui/App.js index ada8f74b..229075a2 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -56,7 +56,7 @@ function HomeTabGuarda({ route }) { backgroundColor: "#D7A86E" }, tabBarIcon: () => (} color="#D7A86E" size="md" />)}} onclick={() => setSelected(0)} /> - (} color="#D7A86E" size="md" />)} } onclick={() => setSelected(1)} /> Hora de inicio - + diff --git a/mobile-ui/components/Invitados.js b/mobile-ui/components/Invitados.js index 4815b5a1..2019a5c8 100644 --- a/mobile-ui/components/Invitados.js +++ b/mobile-ui/components/Invitados.js @@ -27,7 +27,7 @@ export default function Invitados({navigation}) { setIsRequesting(true); try { - if(user_type=="4"){ + if(user_type=="3"){ const jsonResponse = await fetch(`${API.BASE_URL}/guest/findGuestCommunity/`+`${community_id}`, { method: "GET", headers: { @@ -37,7 +37,7 @@ export default function Invitados({navigation}) { const response = await jsonResponse.json(); setInvitados(response.message); - }else{ + }else if(user_type=="4"){ const jsonResponse = await fetch(`${API.BASE_URL}/guest/findGuestUser/`+`${id}`, { method: "GET", headers: { diff --git a/mobile-ui/components/LogIn.js b/mobile-ui/components/LogIn.js index 7a66cf33..75e1ad90 100644 --- a/mobile-ui/components/LogIn.js +++ b/mobile-ui/components/LogIn.js @@ -92,7 +92,7 @@ export default function LogIn({ navigation }) { navigation.navigate('Comunicados', {user}) }else if(user.user_type == '3'){ addUser(user); - // cambiar por ComunicadosGuarda luego + // cambiar por Comunicados Guarda luego navigation.navigate('Comunicados', {user}) } }else{