diff --git a/csm_web/frontend/src/components/course/CreateSectionModal.tsx b/csm_web/frontend/src/components/course/CreateSectionModal.tsx index cc614ec3..ebf129c0 100644 --- a/csm_web/frontend/src/components/course/CreateSectionModal.tsx +++ b/csm_web/frontend/src/components/course/CreateSectionModal.tsx @@ -87,9 +87,10 @@ export const CreateSectionModal = ({ courseId, closeModal, reloadSections }: Cre } }; - /** - * Handle form submission. - */ + const hasEmptyLocation = () => { + return spacetimes.some(spacetime => !spacetime.location?.trim()); + }; + const handleSubmit = (event: React.MouseEvent): void => { event.preventDefault(); const data = { @@ -219,7 +220,7 @@ export const CreateSectionModal = ({ courseId, closeModal, reloadSections }: Cre - diff --git a/package.json b/package.json index 2cd4567e..42027744 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "csm_web", "version": "1.0.0", - "description": "", + "description": "This repository contains webapps that help support the infrastructure of CSM. Currently, it only holds Scheduler (our section signup and attendance system), but more are on the way.", "main": "index.tsx", "scripts": { "dev": "webpack --mode development",