Automated cherry pick of #3240 (#3253)

* Fix edit profile screen being dismissed when removing profile picture

* Fix test
This commit is contained in:
Mattermost Build 2019-09-12 16:30:58 +02:00 committed by Elias Nahum
parent 001c105ff7
commit 521435748e
2 changed files with 0 additions and 3 deletions

View file

@ -258,7 +258,6 @@ export default class EditProfile extends PureComponent {
handleRemoveProfileImage = () => {
this.setState({profileImageRemove: true});
this.emitCanUpdateAccount(true);
this.props.actions.dismissModal();
}
uploadProfileImage = async () => {

View file

@ -69,7 +69,5 @@ describe('edit_profile', () => {
expect(wrapper.state('profileImageRemove')).toEqual(true);
expect(instance.emitCanUpdateAccount).toHaveBeenCalledTimes(1);
expect(instance.emitCanUpdateAccount).toBeCalledWith(true);
expect(baseProps.actions.dismissModal).toHaveBeenCalledTimes(1);
});
});