From ac3be171ad988de352d519f78afbfa4b0300b207 Mon Sep 17 00:00:00 2001 From: "Abeshouse, Adam A./Sloan Kettering Institute" Date: Fri, 7 Feb 2020 18:52:21 -0500 Subject: [PATCH] survival - use only 2 digit precision for median months Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute --- src/pages/resultsView/survival/SurvivalUtil.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/resultsView/survival/SurvivalUtil.tsx b/src/pages/resultsView/survival/SurvivalUtil.tsx index 7e39cfd73ed..7848d2371e8 100644 --- a/src/pages/resultsView/survival/SurvivalUtil.tsx +++ b/src/pages/resultsView/survival/SurvivalUtil.tsx @@ -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; } }