fix communities UI
This commit is contained in:
parent
a44fe8caa2
commit
b704597d54
|
@ -257,6 +257,7 @@ const Communities = () => {
|
|||
})
|
||||
.catch((err) => console.log('Ocurrió un error con el fetch', err));
|
||||
} else {
|
||||
let _communities = [...communitiesList];
|
||||
let _community = { ...community };
|
||||
_community.province = provinciaId;
|
||||
_community.canton = cantonId;
|
||||
|
@ -305,6 +306,7 @@ const Communities = () => {
|
|||
setCommunity(emptyCommunity);
|
||||
})
|
||||
.catch((err) => console.log('Ocurrió un error con el fetch', err));
|
||||
}
|
||||
} else {
|
||||
setSubmitted(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue