@metamask-previews/keyring-controller 25.0.0-preview-7cfbb337 → 25.0.0-preview-6c66772
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -122,7 +122,7 @@ function assertIsValidPassword(password) {
|
|
|
122
122
|
if (typeof password !== 'string') {
|
|
123
123
|
throw new Error(KeyringControllerError.WrongPasswordType);
|
|
124
124
|
}
|
|
125
|
-
if (!password
|
|
125
|
+
if (!password?.length) {
|
|
126
126
|
throw new Error(KeyringControllerError.InvalidEmptyPassword);
|
|
127
127
|
}
|
|
128
128
|
}
|