File tree 3 files changed +6
-3
lines changed 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default {
26
26
continue : 'Continue' ,
27
27
firstName : 'First name' ,
28
28
lastName : 'Last name' ,
29
+ phone : 'Phone' ,
29
30
phoneNumber : 'Phone number' ,
30
31
email : 'Email' ,
31
32
and : 'and' ,
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default {
26
26
continue : 'Continuar' ,
27
27
firstName : 'Primer nombre' ,
28
28
lastName : 'Apellido' ,
29
+ phone : 'teléfono' ,
29
30
phoneNumber : 'Número de teléfono' ,
30
31
email : 'Email' ,
31
32
and : 'y' ,
Original file line number Diff line number Diff line change @@ -85,10 +85,11 @@ class ResendValidationForm extends React.Component {
85
85
}
86
86
87
87
render ( ) {
88
- const isNewAccount = ! this . props . account . accountExists && ! this . props . account . validated ;
88
+ const isNewAccount = ! this . props . account . accountExists ;
89
89
const isOldUnvalidatedAccount = this . props . account . accountExists && ! this . props . account . validated ;
90
- const login = Str . isSMSLogin ( this . props . credentials . login ) ? this . props . toLocalPhone ( Str . removeSMSDomain ( this . props . credentials . login ) ) : this . props . credentials . login ;
91
- const loginType = ( Str . isSMSLogin ( this . props . credentials . login ) ? this . props . translate ( 'common.phoneNumber' ) : this . props . translate ( 'common.email' ) ) . toLowerCase ( ) ;
90
+ const isSMSLogin = Str . isSMSLogin ( this . props . credentials . login ) ;
91
+ const login = isSMSLogin ? this . props . toLocalPhone ( Str . removeSMSDomain ( this . props . credentials . login ) ) : this . props . credentials . login ;
92
+ const loginType = ( isSMSLogin ? this . props . translate ( 'common.phone' ) : this . props . translate ( 'common.email' ) ) . toLowerCase ( ) ;
92
93
let message = '' ;
93
94
94
95
if ( isNewAccount ) {
You can’t perform that action at this time.
0 commit comments