diff --git a/.husky/commit-msg b/.husky/commit-msg index 7a51158..ff9b87a 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -37,7 +37,6 @@ fi # Check if the string contains 2 words wordCount=$(echo "$message" | wc -w) -echo "wordCount: $wordCount" if [ $wordCount -lt 2 ]; then echo "🚨 Wrong commit message! 😕" echo "Error: Commit message should contain at least 2 words." diff --git a/.husky/pre-commit b/.husky/pre-commit index 558c0a5..db1d75b 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -10,7 +10,7 @@ then fi # check for eslint errors -npm run lint +npm run lint # check comments npm run comment:check diff --git a/src/components/Profile/Profile.tsx b/src/components/Profile/Profile.tsx index 06620db..1aaaa84 100644 --- a/src/components/Profile/Profile.tsx +++ b/src/components/Profile/Profile.tsx @@ -22,7 +22,6 @@ function Profile() { const [username] = useState(getUserName()); const [fileNames, setFileNames] = useState([]); - const getFiles = async () => { APIService.getFileNames(username).then((res) => { setFileNames(res); diff --git a/todos.md b/todos.md index 5213cd3..a1442aa 100644 --- a/todos.md +++ b/todos.md @@ -2,6 +2,6 @@ -- [ ] let user register _(2023-11-29 Phil1436)_ -- [ ] let user manage collections _(2023-11-29 Phil1436)_ -- [ ] let user add files to collection _(2023-11-29 Phil1436)_ +- [ ] let user register _(2023-11-29 Phil1436)_ +- [ ] let user manage collections _(2023-11-29 Phil1436)_ +- [ ] let user add files to collection _(2023-11-29 Phil1436)_