@@ -39,7 +39,6 @@ export default class EditAccountView extends React.Component {
3939    this . handlePasswordUpdate  =  this . handlePasswordUpdate . bind ( this ) ; 
4040    this . handleImageChanged  =  this . handleImageChanged . bind ( this ) ; 
4141    this . handleCheckboxClick  =  this . handleCheckboxClick . bind ( this ) ; 
42-     this . handleStartAddCred  =  this . handleStartAddCred . bind ( this ) ; 
4342    this . handleCredChange  =  this . handleCredChange . bind ( this ) ; 
4443    this . handleCredKeyDown  =  this . handleCredKeyDown . bind ( this ) ; 
4544    this . handleCredEntered  =  this . handleCredEntered . bind ( this ) ; 
@@ -92,10 +91,6 @@ export default class EditAccountView extends React.Component {
9291    } 
9392  } 
9493
95-   handleStartAddCred ( )  { 
96-     this . setState ( { addCredActive : true } ) ; 
97-   } 
98- 
9994  handleCredChange ( e )  { 
10095    this . setState ( { newCred : e . target . value ,  addCredInvalid : false } ) ; 
10196  } 
@@ -169,12 +164,11 @@ export default class EditAccountView extends React.Component {
169164    this . state . credentials . map ( ( cred )  =>  { 
170165      credentials . push ( < div  key = { cred . meth  +  ":"  +  cred . val  +  ":"  +  cred . done } > { cred . meth } : < tt > { cred . val } </ tt > 
171166        < span  >  { ! cred . done  ?
172-           < a  href = "javascript:;" 
173-             onClick = { this . props . onCredConfirm . bind ( this ,  cred . meth ,  cred . val ) } > 
167+           < a  href = "#"  onClick = { ( e )  =>  { e . preventDefault ( ) ;  this . props . onCredConfirm ( cred . meth ,  cred . val ) ; } } > 
174168              < FormattedMessage  id = "validate_credential_action"  defaultMessage = "confirm" 
175169                description = "Validate credentail call to action"  /> 
176170            </ a > 
177-           : null }  < a  href = "javascript:; "  onClick = { this . props . onCredDelete . bind ( this ,   cred . meth ,  cred . val ) } > < i 
171+           : null }  < a  href = "# "  onClick = { ( e )   =>   { e . preventDefault ( ) ;   this . props . onCredDelete ( cred . meth ,  cred . val ) ; } } > < i 
178172            className = "material-icons gray" > delete_outline</ i > </ a > </ span > </ div > ) ; 
179173    } ) ; 
180174
@@ -270,7 +264,7 @@ export default class EditAccountView extends React.Component {
270264                  placeholder = "Phone number or email"  required = "required"  autoFocus 
271265                  onChange = { this . handleCredChange }  onKeyDown = { this . handleCredKeyDown }  onBlur = { this . handleCredEntered }  /> 
272266                : null } 
273-               < div > < a  href = "javascript:; "  onClick = { this . handleStartAddCred } > + Add another</ a > </ div > 
267+               < div > < a  href = "# "  onClick = { ( e )   =>   { e . preventDefault ( ) ;   this . setState ( { addCredActive :  true } ) ; } } > + Add another</ a > </ div > 
274268            </ div > 
275269          </ div > 
276270          < div  className = "hr"  /> 
@@ -295,7 +289,7 @@ export default class EditAccountView extends React.Component {
295289          </ div > 
296290          < div  className = "hr"  /> 
297291          < div  className = "panel-form-column" > 
298-             < a  href = "javascript:; "  className = "red flat-button"  onClick = { this . props . onLogout } > 
292+             < a  href = "# "  className = "red flat-button"  onClick = { ( e )   =>   { e . preventDefault ( ) ;   this . props . onLogout ( ) ; } } > 
299293              < i  className = "material-icons" > exit_to_app</ i >  < FormattedMessage  id = "button_logout" 
300294                defaultMessage = "Logout"  description = "Button [Logout]"  /> 
301295            </ a > 
0 commit comments