mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
length check on userInputs
This commit is contained in:
parent
ed74f73a8c
commit
6a958afd16
@ -247,7 +247,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
|
||||
return null;
|
||||
}
|
||||
let globalUserInputs = ['bitwarden', 'bit', 'warden'];
|
||||
if (userInputs != null) {
|
||||
if (userInputs != null && userInputs.length > 0) {
|
||||
globalUserInputs = globalUserInputs.concat(userInputs);
|
||||
}
|
||||
// Use a hash set to get rid of any duplicate user inputs
|
||||
|
Loading…
Reference in New Issue
Block a user