Skip to content

Commit

Permalink
do not show anything in the timesheets table if the type is user
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Nov 4, 2024
1 parent 945e3a3 commit a38f1ac
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand All @@ -49,6 +52,7 @@ const TableCell = ({

return startDate <= compareDate && endDate >= compareDate;
});

return (
<Box width="100%">
<FormField
Expand Down

0 comments on commit a38f1ac

Please sign in to comment.