Skip to content

Commit

Permalink
fix the patient age
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Sep 30, 2024
1 parent fc4d499 commit 34dfa9b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Components/Shifting/ShiftingBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ import {
useRef,
useState,
} from "react";
import {
classNames,
formatDateTime,
formatName,
formatPatientAge,
} from "../../Utils/utils";
import { classNames, formatDateTime, formatName } from "../../Utils/utils";
import { downloadShiftRequests } from "../../Redux/actions";
import { useDrag, useDrop } from "react-dnd";

import ButtonV2 from "../Common/components/ButtonV2";
import ConfirmDialog from "../Common/ConfirmDialog";
import { navigate } from "raviger";
Expand Down Expand Up @@ -74,8 +68,7 @@ const ShiftCard = ({ shift, filter }: any) => {
<div>
<div className="flex justify-between">
<div className="mb-2 text-xl font-bold capitalize">
{shift.patient_object.name} -{" "}
{formatPatientAge(shift.patient_object, true)}
{shift.patient_object.name} - {shift.patient_object.age}
</div>
<div>
{shift.emergency && (
Expand Down

0 comments on commit 34dfa9b

Please sign in to comment.