File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
app/components/containers Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments