diff --git a/package.json b/package.json index 64add0e91b..823f6f809e 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,9 @@ "i18next-localstorage-cache": "=1.1.1", "i18next-xhr-backend": "=1.4.2", "js-sha256": "0.9.0", - "lisk-js": "0.5.0", + "lisk-js": "0.5.1", "lodash.throttle": "4.1.1", - "moment": "2.18.1", + "moment": "2.20.1", "numeral": "=2.0.6", "parallax-js": "3.1.0", "popmotion": "7.8.2", @@ -107,7 +107,7 @@ "cucumber": "2.2.0", "cucumber-junit": "1.7.0", "del-cli": "1.1.0", - "electron": "1.8.1", + "electron": "1.8.2", "electron-builder": "19.32.2", "electron-json-storage": "=3.2.0", "electron-updater": "2.16.1", diff --git a/src/utils/passphrase.js b/src/utils/passphrase.js index 08d7d8cbe4..403b947e9e 100644 --- a/src/utils/passphrase.js +++ b/src/utils/passphrase.js @@ -90,7 +90,7 @@ export const generatePassphrase = ({ seed }) => (new mnemonic(new Buffer(seed.jo * @returns {bool} isValidPassphrase */ export const isValidPassphrase = (passphrase) => { - const normalizedValue = passphrase.replace(/ +/g, ' ').trim().toLowerCase(); + const normalizedValue = passphrase.replace(/ +/g, ' ').trim(); let isValid; try { isValid = normalizedValue.split(' ').length >= 12 && mnemonic.isValid(normalizedValue); @@ -107,7 +107,7 @@ export const getPassphraseValidationErrors = (passphrase) => { const partialPassphraseError = []; const invalidWords = passphraseArray.filter((word) => { - const isNotInDictionary = !inDictionary(word.toLowerCase()); + const isNotInDictionary = !inDictionary(word); partialPassphraseError[passphraseArray.indexOf(word)] = isNotInDictionary; return isNotInDictionary; });