Skip to content

Commit 55f718d

Browse files
committed
Fix issues when trying to load passwordChange page
1 parent 778fffc commit 55f718d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

app/components/containers/PasswordChange.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ class PasswordChange extends Component {
1313

1414
componentDidMount() {
1515
this.props.setAppBarTitle('Password change');
16-
this.props.toggleArrowBackIfNeeded(this.props.isArrowBackVisible);
16+
this.props.toggleArrowBack();
1717
}
1818

1919
componentWillUnmount() {
20-
this.props.setAppBarTitle(null);
21-
this.props.toggleArrowBackIfNeeded(this.props.isArrowBackVisible);
20+
this.props.toggleArrowBack();
2221
}
2322

2423
render() {
@@ -80,10 +79,8 @@ const mapDispatchToProps = (dispatch) => {
8079
handleFocus(event) {
8180
dispatch(passwordChangeActions.onFocusPasswordChangeField(event.target.name));
8281
},
83-
toggleArrowBackIfNeeded(isArrowBackVisible) {
84-
if (!isArrowBackVisible) {
85-
dispatch(toggleArrowBack());
86-
}
82+
toggleArrowBack() {
83+
dispatch(toggleArrowBack());
8784
},
8885
};
8986
};

0 commit comments

Comments
 (0)