Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed Nov 4, 2024
1 parent a38f1ac commit 5eb7165
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ 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 @@ -45,6 +42,9 @@ const TableCell = ({
onChangeCell,
});

if (!userId) {
return null;
}
const canAddHours = !!assignments.find((assignment) => {
const compareDate = new Date(date).setHours(0, 0, 0, 0);
const startDate = new Date(assignment.startDate).setHours(0, 0, 0, 0);
Expand Down

0 comments on commit 5eb7165

Please sign in to comment.