mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
<=
This commit is contained in:
parent
10c865b33d
commit
53bf68de49
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user