The type for onClick was updated to accommodate providing async functions as a value for onClick. This is an attempt to fix the linter error in Course Planner:
"Promise-returning function provided to attribute where a void return was expected"
for the onClick value of the submit button in the modals.
Describe your changes
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality
to change)
Checklist:
[x] I have run eslint on the code
[ ] I have added JSDoc for all of my code (where applicable)
The type for
onClick
was updated to accommodate providing async functions as a value foronClick
. This is an attempt to fix the linter error in Course Planner:for the
onClick
value of the submit button in the modals.Describe your changes
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #638