fix response from server

This commit is contained in:
Maria Sanchez 2022-08-31 09:25:16 -06:00
parent 4298861722
commit 4558b2cc64
1 changed files with 2 additions and 2 deletions

View File

@ -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();