Skip to content

Commit

Permalink
add condition for empty seed error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaElattar committed Jan 9, 2025
1 parent d7879bc commit ebc973b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/lib/screens/recover_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class _RecoverScreenState extends State<RecoverScreen> {
}

validateSeed(String seedPhrase, userInfoResult) async {
if (seedPhrase.isEmpty){
throw ('Seed Phrase is required');
}
try {
checkSeedLength(seedPhrase);
KeyPair keyPair = await generateKeyPairFromSeedPhrase(seedPhrase);
Expand Down

0 comments on commit ebc973b

Please sign in to comment.