📅  最后修改于: 2022-03-11 15:01:41.052000             🧑  作者: Mango
//when this.state.errors object is empty
if (Object.keys(this.state.errors).length == 0) {
this.props.updateUser(user);
this.props.navigation.goBack();
}