From 47db7defbf959b2630adc136bc6fef42e8630720 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Tue, 23 Aug 2022 04:06:28 -0600 Subject: [PATCH] fix strings --- web-ui/web-react/src/components/InvitadosComunidad.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web-ui/web-react/src/components/InvitadosComunidad.js b/web-ui/web-react/src/components/InvitadosComunidad.js index 9e24b3b6..099f1849 100644 --- a/web-ui/web-react/src/components/InvitadosComunidad.js +++ b/web-ui/web-react/src/components/InvitadosComunidad.js @@ -24,8 +24,7 @@ const InvitadosComunidad = () => { const toastRef = useRef(null); const getInvitados = async () => { - console.log(`${process.env.REACT_APP_API_URL}`); - await fetch(`${process.env.REACT_APP_API_URL}/guest/allGuests`, { + await fetch(`http://localhost:4000/guest/allGuests`, { method: 'GET', }) .then((response) => response.json()) @@ -40,7 +39,7 @@ const InvitadosComunidad = () => { useEffect(() => { getInvitados(); - }, [invitados]); + }, [getInvitados, invitados]); const leftToolbarTemplate = () => { return (