Skip to content

Commit

Permalink
chore: update readme (node 20 required), userPasswordPolicy.ts :delet…
Browse files Browse the repository at this point in the history
…e console.log(error)
  • Loading branch information
mattgoud committed Sep 30, 2024
1 parent d45be6b commit 5f0be62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 1 addition & 2 deletions src/js/components/usePasswordPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f0be62

Please sign in to comment.