diff --git a/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx b/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx index 9a61adb0a..7287c232c 100644 --- a/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx +++ b/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx @@ -30,11 +30,11 @@ const TaskScheduleSection = ({
- {schedule} + {schedule || "No schedule"}
- {parseCronToHuman(schedule)} + {schedule ? parseCronToHuman(schedule) : "No schedule"}
diff --git a/components/VercelChat/tools/tasks/TaskCard.tsx b/components/VercelChat/tools/tasks/TaskCard.tsx index dfa54fc8b..7a78c0667 100644 --- a/components/VercelChat/tools/tasks/TaskCard.tsx +++ b/components/VercelChat/tools/tasks/TaskCard.tsx @@ -78,11 +78,11 @@ const TaskCard: React.FC = ({ task, isDeleted, ownerEmail }) => {
- {isRecurring(task.schedule) && ( + {task.schedule && isRecurring(task.schedule) && ( )} - {parseCronToHuman(task.schedule.trim())} + {task.schedule ? parseCronToHuman(task.schedule.trim()) : "No schedule"}