diff --git a/README.md b/README.md index 9acc2a27..ed3bfd0f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This is a PrestaShop's theme we are working on. Please, if you work on this them ## How to build assets -Same as the PrestaShop project, you need at least **NodeJS 16.x** and **NPM 8** in order to build the project. +Same as the PrestaShop project, you need at least **NodeJS 20.x** and **NPM 8** in order to build the project. First you need to install every node module: diff --git a/src/js/components/usePasswordPolicy.ts b/src/js/components/usePasswordPolicy.ts index 64ca6102..f9f3eef1 100644 --- a/src/js/components/usePasswordPolicy.ts +++ b/src/js/components/usePasswordPolicy.ts @@ -164,8 +164,7 @@ const usePasswordPolicy = (selector: string): PasswordPolicyReturn => { const hints = ((content) => { try { return JSON.parse(content); - } catch (error) { - console.error(error); + } catch { return false; } })(hintElement.innerHTML);