diff --git a/components/calendar/ShiftComponent.tsx b/components/calendar/ShiftComponent.tsx index 7dd6341..3e0de26 100644 --- a/components/calendar/ShiftComponent.tsx +++ b/components/calendar/ShiftComponent.tsx @@ -196,7 +196,7 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a return (
handlePublisherClick(ass.publisher)}> {publisherInfo.firstName} {publisherInfo.lastName} diff --git a/components/publisher/PublisherInlineForm.js b/components/publisher/PublisherInlineForm.js index b231520..72c2367 100644 --- a/components/publisher/PublisherInlineForm.js +++ b/components/publisher/PublisherInlineForm.js @@ -59,6 +59,7 @@ const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => { type="number" id="desiredShiftsPerMonth" name="desiredShiftsPerMonth" + min="0" max="8" value={desiredShiftsPerMonth} onChange={(e) => setDesiredShiftsPerMonth(parseInt(e.target.value))} className="textbox mt-1 sm:mt-0 w-full sm:w-auto flex-grow"