diff --git a/src/app/timesheets/_presenters/components/TimesheetsTable/_presenters/components/TableCell/index.tsx b/src/app/timesheets/_presenters/components/TimesheetsTable/_presenters/components/TableCell/index.tsx index 6bc81f0..7ae5d17 100644 --- a/src/app/timesheets/_presenters/components/TimesheetsTable/_presenters/components/TableCell/index.tsx +++ b/src/app/timesheets/_presenters/components/TimesheetsTable/_presenters/components/TableCell/index.tsx @@ -26,6 +26,9 @@ const TableCell = ({ onChange: onChangeCell, assignments, }: Props) => { + if (!userId) { + return null; + } const formattedDate = dayjs(date).format("YYYY-MM-DD"); const timeEntry = timeEntries.find( (entry) => @@ -49,6 +52,7 @@ const TableCell = ({ return startDate <= compareDate && endDate >= compareDate; }); + return (