removed extra state variable

This commit is contained in:
toast 2021-02-09 19:25:51 -07:00
parent 1665777170
commit f3255a38f7

View File

@ -58,7 +58,7 @@ export default class SceneEditAccount extends React.Component {
};
_handleUpload = async (e) => {
this.setState({ changingAvatar: true, changingBio: true });
this.setState({ changingAvatar: true });
let json = await UserBehaviors.uploadImage(e.target.files[0], this.props.resources, true);
if (!json) {
this.setState({ changingAvatar: false });