From 930b2791f281b300163b1d2c2c4f1e5246d4f68f Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 24 May 2022 16:59:25 -0700 Subject: [PATCH] IO-1907 Prevent NaN PVRT. --- .../ca-bc-pvrt-calculator/ca-bc-pvrt-calculator.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/ca-bc-pvrt-calculator/ca-bc-pvrt-calculator.component.jsx b/client/src/components/ca-bc-pvrt-calculator/ca-bc-pvrt-calculator.component.jsx index bffd68e58..b1c1ebcc6 100644 --- a/client/src/components/ca-bc-pvrt-calculator/ca-bc-pvrt-calculator.component.jsx +++ b/client/src/components/ca-bc-pvrt-calculator/ca-bc-pvrt-calculator.component.jsx @@ -10,7 +10,7 @@ export default function CABCpvrtCalculator({ disabled, form }) { const handleFinish = async (values) => { logImEXEvent("job_ca_bc_pvrt_calculate"); - form.setFieldsValue({ ca_bc_pvrt: (values.rate * values.days).toFixed(2) }); + form.setFieldsValue({ ca_bc_pvrt: ((values.rate||0) * (values.days||0)).toFixed(2) }); setVisibility(false); };