@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.
@@ -145,7 +145,7 @@ function assertIsValidPassword(password) {
145
145
  if (typeof password !== 'string') {
146
146
  throw new Error(constants_1.KeyringControllerError.WrongPasswordType);
147
147
  }
148
- if (!password || !password.length) {
148
+ if (!password?.length) {
149
149
  throw new Error(constants_1.KeyringControllerError.InvalidEmptyPassword);
150
150
  }
151
151
  }