diff --git a/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res b/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res index eb4fd2b2376..d55ab1cfc87 100644 --- a/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res +++ b/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res @@ -55,13 +55,15 @@ let make = ( } }) - let getStatus = (min, minText, max, maxText, val) => { - switch (val >= min, val <= max) { - | (true, true) => ("Normal", "#059669") - | (true, false) => (maxText, "#DC2626") - | _ => (minText, "#DC2626") - } + let getLabel = (param: float) => { + let minText = "Low" + let maxText = "High" + switch param { + | 0.0 => (minText, "#059669") + | 5.0 => (maxText, "#DC2626") + | _ => ("", "") } +}