* Fix edit profile screen being dismissed when removing profile picture * Fix test
This commit is contained in:
parent
001c105ff7
commit
521435748e
2 changed files with 0 additions and 3 deletions
|
|
@ -258,7 +258,6 @@ export default class EditProfile extends PureComponent {
|
|||
handleRemoveProfileImage = () => {
|
||||
this.setState({profileImageRemove: true});
|
||||
this.emitCanUpdateAccount(true);
|
||||
this.props.actions.dismissModal();
|
||||
}
|
||||
|
||||
uploadProfileImage = async () => {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue