diff --git a/packages/bruno-electron/src/store/env-secrets.js b/packages/bruno-electron/src/store/env-secrets.js index b3d26c723..8ded05ae9 100644 --- a/packages/bruno-electron/src/store/env-secrets.js +++ b/packages/bruno-electron/src/store/env-secrets.js @@ -28,7 +28,7 @@ class EnvironmentSecretsStore { } isValidValue(val) { - return val && typeof val === 'string' && val.length > 0; + return typeof val === 'string' && val.length >= 0; } storeEnvSecrets(collectionPathname, environment) { diff --git a/packages/bruno-electron/src/utils/encryption.js b/packages/bruno-electron/src/utils/encryption.js index 980311ff9..b73e437e6 100644 --- a/packages/bruno-electron/src/utils/encryption.js +++ b/packages/bruno-electron/src/utils/encryption.js @@ -48,7 +48,7 @@ function safeStorageDecrypt(str) { } function encryptString(str) { - if (!str || typeof str !== 'string' || str.length === 0) { + if (typeof str !== 'string') { throw new Error('Encrypt failed: invalid string'); }