From 4558b2cc64ec7d048fa757166dda352244ff5d44 Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Wed, 31 Aug 2022 09:25:16 -0600 Subject: [PATCH] fix response from server --- mobile-ui/components/Profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile-ui/components/Profile.js b/mobile-ui/components/Profile.js index 6282967b..7dcabffa 100644 --- a/mobile-ui/components/Profile.js +++ b/mobile-ui/components/Profile.js @@ -181,8 +181,8 @@ export default function Profile({ navigation }) { .then(response => { // console.log(baseURL+`${id}`); - if (response.status != 201){ - console.log('ocurrio un error '); + if (response.status != 201 && response.status != 200){ + console.log('ocurrio un error ' + response); }else{ return response.json();