mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
string typeof check
This commit is contained in:
@@ -155,7 +155,7 @@ export abstract class BaseImporter {
|
||||
}
|
||||
|
||||
protected isNullOrWhitespace(str: string): boolean {
|
||||
return str == null || str.trim() === '';
|
||||
return str == null || typeof str !== 'string' || str.trim() === '';
|
||||
}
|
||||
|
||||
protected getValueOrDefault(str: string, defaultValue: string = null): string {
|
||||
|
||||
Reference in New Issue
Block a user