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

This commit is contained in:
James Petts 2020-07-31 18:00:00 +01:00 committed by GitHub
parent 4d1d73b89c
commit 5f487840a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>