OHIF-325: Remove trailing zeroes from patient age (#1941)

This commit is contained in:
James Petts authored and GitHub committed 2020-07-31 19:00:00 +02:00
1 parent 4d1d73b89c
commit 5f487840a1
1 file changed
+5 -4
@@ -261,6 +261,10 @@ function PatientInfo({
isOpen,
showPatientInfoRef,
}) {
while (patientAge.charAt(0) === '0') {
patientAge = patientAge.substr(1);
}
return (
<div ref={showPatientInfoRef}>
<Tooltip
@@ -301,10 +305,7 @@ function PatientInfo({
</div>
<div className={classnames(classes.row)}>
<span className={classnames(classes.infoHeader)}>MRN</span>
<span
className={classnames(classes.infoText)}
title={MRN}
>
<span className={classnames(classes.infoText)} title={MRN}>
{MRN}
</span>
</div>