Skip to content

Commit

Permalink
Disable non-null errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinToft committed Sep 22, 2024
1 parent 6442a87 commit 30e4e88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/pages/UpcomingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ export const UpcomingCard = ({ event, setShouldReload }: { event: UpcomingEvent,
setIsEditModalOpen(true);
setCurrentlyEditingMealRequestId(meal?.id);
};


// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const startDate = new Date(mealRequest!.dropOffDatetime + "Z") ?? null;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const endDate = new Date(mealRequest!.dropOffDatetime + "Z") ?? null;
if (startDate) {
endDate.setHours(endDate.getHours() + 1);
Expand Down

0 comments on commit 30e4e88

Please sign in to comment.