fix response from server
This commit is contained in:
parent
4298861722
commit
4558b2cc64
|
@ -181,8 +181,8 @@ export default function Profile({ navigation }) {
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
||||||
// console.log(baseURL+`${id}`);
|
// console.log(baseURL+`${id}`);
|
||||||
if (response.status != 201){
|
if (response.status != 201 && response.status != 200){
|
||||||
console.log('ocurrio un error ');
|
console.log('ocurrio un error ' + response);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
return response.json();
|
return response.json();
|
||||||
|
|
Loading…
Reference in New Issue