mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-17 17:27:52 +03:00
fixes regression, fixes missing import: avatar uploads
This commit is contained in:
parent
83ba2b6a85
commit
c8b029446c
@ -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";
|
||||
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user