Skip to content

Commit

Permalink
fix: Fix study title
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Dec 10, 2024
1 parent 2b5b7eb commit 1d6675b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/accessories/radiology/studies/Studies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { StudyResponse } from "generated";
import { parseNumericDate } from "libraries/formatUtils/parseNumericDate";
import { useAppDispatch, useAppSelector } from "libraries/hooks/redux";
import { useTimeAgo } from "libraries/hooks/useTimeAgo";
import { isEmpty } from "lodash";
import moment from "moment";
import React, { useCallback, useEffect, useMemo } from "react";
import { Trans, useTranslation } from "react-i18next";
Expand Down Expand Up @@ -91,7 +92,9 @@ export const Studies = () => {
return data.map((study) => {
return {
id: study.id ?? "",
title: study.study?.description ?? "--",
title: isEmpty(study.study?.description)
? "--"
: study.study?.description,
date: study.study?.date
? moment(study.study.date, "YYYYMMDD")
.locale(i18n.language)
Expand Down

0 comments on commit 1d6675b

Please sign in to comment.