Skip to content

Commit

Permalink
fixed the age format in shifting board (#8853)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Oct 21, 2024
1 parent 7ea31d3 commit 06e853c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Components/Shifting/ListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ExportButton } from "../Common/Export";
import ListFilter from "./ListFilter";
import Page from "../Common/components/Page";
import SearchInput from "../Form/SearchInput";
import { formatDateTime, formatPatientAge } from "../../Utils/utils";
import { formatDateTime } from "../../Utils/utils";
import { formatFilter } from "./Commons";
import { navigate } from "raviger";
import useFilters from "../../Common/hooks/useFilters";
Expand Down Expand Up @@ -75,8 +75,7 @@ export default function ListView() {
<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 06e853c

Please sign in to comment.