Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use word position

Neeraj Gupta9f234036045c
diff --git a/auth/lib/core/configuration.dart b/auth/lib/core/configuration.dart
index 123b8f37c0..950ebd60b6 100644
--- a/auth/lib/core/configuration.dart
+++ b/auth/lib/core/configuration.dart
@@ -288,11 +288,11 @@ class Configuration {
final split = recoveryKey.split(' ');
if (split.length != mnemonicKeyWordCount) {
String wordThatIsFollowedByEmptySpaceInSplit = '';
- for (int i = 1; i < split.length; i++) {
+ for (int i = 0; i < split.length; i++) {
String word = split[i];
if (word.isEmpty) {
wordThatIsFollowedByEmptySpaceInSplit =
- '\n\nExtra space after word "${split[i - 1]}"';
+ '\n\nExtra space after word at position $i';
break;
}
}