Skip to content

Commit

Permalink
Merge pull request #3047 from adamabeshouse/median-months-precision
Browse files Browse the repository at this point in the history
survival - use only 2 digit precision for median months
  • Loading branch information
adamabeshouse authored Feb 11, 2020
2 parents 5bec674 + 730c32e commit 30083f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/resultsView/survival/SurvivalUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function getMedian(
let median: string = 'NA';
for (let i = 0; i < estimates.length; i++) {
if (estimates[i] <= 0.5) {
median = patientSurvivals[i].months.toString();
median = patientSurvivals[i].months.toFixed(2);
break;
}
}
Expand Down

0 comments on commit 30083f3

Please sign in to comment.