diff --git a/desktop/app.js b/desktop/app.js index 1be1bf1d..281e25b9 100644 --- a/desktop/app.js +++ b/desktop/app.js @@ -823,7 +823,7 @@ function saveConfig(name, data, key) { data = Buffer.from(data); - if (configEncryptionKey) { + if (key) { const crypto = require('crypto'); const cipher = crypto.createCipheriv( 'aes-256-cbc',