diff --git a/src/components/molecules/ScheduleSettings.tsx b/src/components/molecules/ScheduleSettings.tsx index ad17f38b..00e842ea 100644 --- a/src/components/molecules/ScheduleSettings.tsx +++ b/src/components/molecules/ScheduleSettings.tsx @@ -135,7 +135,9 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia <> Run every: {schedule.runEvery} {schedule.runEveryUnit.toLowerCase()} {['MONTHS', 'WEEKS'].includes(settings.runEveryUnit) ? "Start From" : "On"} {schedule.startFrom.charAt(0).toUpperCase() + schedule.startFrom.slice(1).toLowerCase()} - On day: {schedule.dayOfMonth} + {schedule.runEveryUnit === 'MONTHS' && ( + On day: {schedule.dayOfMonth}{['1', '21', '31'].includes(schedule.dayOfMonth || '') ? 'st' : ['2', '22'].includes(schedule.dayOfMonth || '') ? 'nd' : ['3', '23'].includes(schedule.dayOfMonth || '') ? 'rd' : 'th'} of the month + )} At around: {schedule.atTimeStart}, {schedule.timezone} Timezone