fixes regression, fixes missing import: avatar uploads

This commit is contained in:
@wwwjim 2020-11-17 09:43:39 -08:00
parent 83ba2b6a85
commit c8b029446c
2 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import * as Utilities from "~/node_common/utilities";
import * as Validations from "~/common/validations";
import * as Social from "~/node_common/social";
import * as ViewerManager from "~/node_common/managers/viewer";
import * as SearchManager from "~/node_common/managers/search";
import BCrypt from "bcrypt";

View File

@ -93,6 +93,7 @@ export default class SceneEditAccount extends React.Component {
alert: { message: "We're having trouble connecting right now" },
},
});
this.setState({ changingAvatar: false });
return;
}
@ -100,8 +101,9 @@ export default class SceneEditAccount extends React.Component {
if (response.error) {
dispatchCustomEvent({
name: "create-alert",
detail: { alert: { decorator: json.decorator } },
detail: { alert: { decorator: response.decorator } },
});
this.setState({ changingAvatar: false });
return;
}
@ -125,7 +127,9 @@ export default class SceneEditAccount extends React.Component {
},
},
});
} else if (updateResponse.error) {
}
if (updateResponse.error) {
dispatchCustomEvent({
name: "create-alert",
detail: {