File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/app/components/mnemonic-import Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,19 @@ export class MnemonicImportComponent implements OnInit {
45
45
if ( this . tge ) {
46
46
this . passphrase = this . email + this . password ;
47
47
}
48
- const pkh = this . operationService . seed2keyPair ( this . operationService . mnemonic2seed ( this . mnemonic , this . passphrase ) ) . pkh ;
49
48
if ( ! this . operationService . validMnemonic ( this . mnemonic ) ) {
50
49
this . messageService . addError ( 'Invalid mnemonic!' , 10 ) ;
51
- } else if ( this . pkh && pkh !== this . pkh ) {
52
- if ( this . tge ) {
53
- this . messageService . addError ( 'Invalid email or password!' , 5 ) ;
50
+ } else {
51
+ const pkh = this . operationService . seed2keyPair ( this . operationService . mnemonic2seed ( this . mnemonic , this . passphrase ) ) . pkh ;
52
+ if ( this . pkh && pkh !== this . pkh ) {
53
+ if ( this . tge ) {
54
+ this . messageService . addError ( 'Invalid email or password!' , 5 ) ;
55
+ } else {
56
+ this . messageService . addError ( 'Invalid passphrase!' , 5 ) ;
57
+ }
54
58
} else {
55
- this . messageService . addError ( 'Invalid passphrase!' , 5 ) ;
59
+ this . activePanel ++ ;
56
60
}
57
- } else {
58
- this . activePanel ++ ;
59
61
}
60
62
}
61
63
setPwd ( ) {
You can’t perform that action at this time.
0 commit comments