diff --git a/src/components/MasterItem/MasterItem.tsx b/src/components/MasterItem/MasterItem.tsx index 23c683a..29a85ee 100644 --- a/src/components/MasterItem/MasterItem.tsx +++ b/src/components/MasterItem/MasterItem.tsx @@ -23,7 +23,7 @@ const MasterItem = ({ name, phone, id, schedule }) => { {name} - {schedule.map(({ startWashTime, endWashTime }, index) => ( + {schedule?.map(({ startWashTime, endWashTime }, index) => ( {getTimeSlot(startWashTime, endWashTime)}