Skip to content

Commit

Permalink
fix time error
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-sellner committed Dec 3, 2023
1 parent 4d3da4c commit 2dff396
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const getFormattedDatesAndStatus = (resident: Resident) => {
let endDate;
let status = ResidentStatus.CURRENT;
const currentDate = new Date();
currentDate.setHours(0,0,0,0);
if (resident.dateLeft != null) {
const endDateObj = convertToDate(resident.dateLeft);
endDate = getFormattedDateAndTime(endDateObj, true);
Expand Down Expand Up @@ -164,7 +165,7 @@ const ResidentDirectoryTable = ({
<Thead>
<Tr>
<Th>Resident</Th>
<Th>Status</Th>
<Th textAlign="center">Status</Th>
<Th>Building</Th>
<Th>Residency Start Date</Th>
<Th>Residency End Date</Th>
Expand Down

0 comments on commit 2dff396

Please sign in to comment.