@ -437,7 +437,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
}
}
private renderNamePasswordAndVerifyPasswordFields() {
private renderNamePasswordAndVerifyPasswordFields() {
const password Does NotMatchString =
const password s DoNotMatch =
! this . state . passwordFieldsMatch && this . state . password
! this . state . passwordFieldsMatch && this . state . password
? window . i18n ( 'passwordsDoNotMatch' )
? window . i18n ( 'passwordsDoNotMatch' )
: undefined ;
: undefined ;
@ -472,7 +472,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
< SessionInput
< SessionInput
label = { window . i18n ( 'verifyPassword' ) }
label = { window . i18n ( 'verifyPassword' ) }
error = { password Does NotMatchString }
error = { password s DoNotMatch}
type = "password"
type = "password"
placeholder = { window . i18n ( 'optionalPassword' ) }
placeholder = { window . i18n ( 'optionalPassword' ) }
onValueChanged = { ( val : string ) = > {
onValueChanged = { ( val : string ) = > {
@ -735,7 +735,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
passwordFieldsMatch ,
passwordFieldsMatch ,
} = this . state ;
} = this . state ;
// Make sure the password is valid
// Make sure the password is valid
if ( passwordErrorString || passwordFieldsMatch ) {
if ( passwordErrorString ) {
window . pushToast ( {
window . pushToast ( {
title : window.i18n ( 'invalidPassword' ) ,
title : window.i18n ( 'invalidPassword' ) ,
type : 'error' ,
type : 'error' ,
@ -744,6 +744,17 @@ export class RegistrationTabs extends React.Component<{}, State> {
return ;
return ;
}
}
if ( ! ! password && ! passwordFieldsMatch ) {
window . pushToast ( {
title : window.i18n ( 'passwordsDoNotMatch' ) ,
type : 'error' ,
id : 'invalidPassword' ,
} ) ;
return ;
}
if ( ! mnemonicSeed ) {
if ( ! mnemonicSeed ) {
return ;
return ;
}
}