Skip to content

Commit

Permalink
fix resp. rate from being 0 instead of null when unset (#6949)
Browse files Browse the repository at this point in the history
* fix resp. rate from being 0 instead of null

* fix relative time alignment
  • Loading branch information
rithviknishad authored and Ashesh3 committed Jan 2, 2024
1 parent 20acc9d commit ca94351
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/CAREUI/display/RecordMeta.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import CareIcon from "../icons/CareIcon";
import {
formatDateTime,
formatDate,
formatName,
formatTime,
isUserOnline,
relativeTime,
} from "../../Utils/utils";
Expand Down Expand Up @@ -37,8 +38,9 @@ const RecordMeta = ({
let child = (
<div className="tooltip">
<span className="underline">{relativeTime(time)}</span>
<span className="tooltip-text tooltip-left flex gap-1 text-xs font-medium tracking-wider">
{formatDateTime(time)}
<span className="tooltip-text tooltip-bottom flex -translate-x-1/2 gap-1 text-xs font-medium tracking-wider">
{formatTime(time)} <br />
{formatDate(time)}
{user && !inlineUser && (
<span className="flex items-center gap-1">
by
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ export const DailyRounds = (props: any) => {
}
: undefined,
pulse: state.form.pulse,
resp: Number(state.form.resp),
resp: state.form.resp,
temperature: state.form.temperature,
rhythm: Number(state.form.rhythm) || 0,
rhythm: state.form.rhythm || 0,
rhythm_detail: state.form.rhythm_detail,
ventilator_spo2: state.form.ventilator_spo2,
consciousness_level: state.form.consciousness_level,
Expand Down

0 comments on commit ca94351

Please sign in to comment.