do inscremental updates instead of full updates

This commit is contained in:
or-else
2019-02-04 12:46:17 +03:00
parent 004dec20d3
commit a534387593
3 changed files with 25 additions and 22 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ export default class EditAccountView extends React.Component {
handleFullNameUpdate(fn) {
this.setState({fullName: fn});
this.props.onUpdateAccount(undefined, vcard(fn, this.state.avatar));
this.props.onUpdateAccount(undefined, vcard(fn, null));
}
handlePasswordUpdate(pwd) {
@@ -70,7 +70,7 @@ export default class EditAccountView extends React.Component {
handleImageChanged(img) {
this.setState({avatar: img});
this.props.onUpdateAccount(undefined, vcard(this.state.fullName, img));
this.props.onUpdateAccount(undefined, vcard(null, img));
}
handleCheckboxClick(what, checked) {