diff --git a/src/services/passwordGeneration.service.ts b/src/services/passwordGeneration.service.ts index 40cddedcb1e..161d3249a1d 100644 --- a/src/services/passwordGeneration.service.ts +++ b/src/services/passwordGeneration.service.ts @@ -277,7 +277,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr } private async appendRandomNumberToRandomWord(wordList: string[]) { - if (wordList == null || wordList.length < 0) { + if (wordList == null || wordList.length <= 0) { return; } const index = await this.cryptoService.randomNumber(0, wordList.length - 1);