feat: remove handleSubmit

This commit is contained in:
karishmas6
2024-10-22 20:39:13 +05:30
parent 035cdaf16a
commit 8fac3ef4c2

View File

@@ -76,15 +76,6 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia
'SUNDAY'
];
const handleSubmit = () => {
// If scheduling is disabled, only send the enabled flag
if (!settings.enabled) {
handleStart({ enabled: false } as ScheduleSettings);
return;
}
handleStart(settings);
};
const deleteSchedule = () => {
};