-
Notifications
You must be signed in to change notification settings - Fork 0
Fix: add two datas for the dashbaord https://app.clickup.com/t/86d22uk37 #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -15,6 +15,7 @@ export default function Settings() { | |||||||||||
| } | ||||||||||||
|
|
||||||||||||
| function handleSave() { | ||||||||||||
| console.log('handleSave') | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove This Proposed fix function handleSave() {
- console.log('handleSave')
localStorage.setItem('appSettings', JSON.stringify(settings))
alert('Settings saved successfully!')
}As per coding guidelines: "No console.log (remove or replace with an approved logger if the project adds one)." 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
| localStorage.setItem('appSettings', JSON.stringify(settings)) | ||||||||||||
| alert('Settings saved successfully!') | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
console.logstatement.This
console.log('Admissions')violates the coding guidelines which strictly prohibitconsole.loginsrc/**/*.{js,jsx}files. Additionally, placing this in the component body means it executes on every render, which can clutter the console.Remove this debug statement or replace with an approved logger if the project has one.
Proposed fix
export default function Admissions() { const navigate = useNavigate() - - console.log('Admissions') const [admissions, setAdmissions] = useState([As per coding guidelines: "No console.log (remove or replace with an approved logger if the project adds one)."
📝 Committable suggestion
🤖 Prompt for AI Agents