Skip to content

Commit

Permalink
Update src/Components/Patient/PatientHome.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com>
  • Loading branch information
AdityyaX and rithviknishad authored Dec 30, 2023
1 parent 3c40842 commit 07ab95c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,6 @@ export const PatientHome = (props: any) => {
setAssignedVolunteerObject(patientData.assigned_to_object);
}, [patientData.assigned_to_object]);

function formatDateOfBirth(dateString) {
if (!dateString) return null;

const date = new Date(dateString);
const day = date.getDate();
const month = date.getMonth() + 1;
const year = date.getFullYear();

const formattedDay = day < 10 ? `0${day}` : day;
const formattedMonth = month < 10 ? `0${month}` : month;

return `${formattedDay}/${formattedMonth}/${year}`;
}

const handleTransferComplete = (shift: any) => {
setModalFor({ ...modalFor, loading: true });
dispatch(completeTransfer({ externalId: modalFor })).then(() => {
Expand Down

0 comments on commit 07ab95c

Please sign in to comment.