From 46d0bc5c9ff353a328f69eff3fde067d332a7c1f Mon Sep 17 00:00:00 2001 From: Linda Xiang Date: Fri, 19 Jul 2024 16:37:05 -0400 Subject: [PATCH] change a bug --- references/validationFunctions/radiation/radiationBoost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/references/validationFunctions/radiation/radiationBoost.js b/references/validationFunctions/radiation/radiationBoost.js index f1525ab..29a53bd 100644 --- a/references/validationFunctions/radiation/radiationBoost.js +++ b/references/validationFunctions/radiation/radiationBoost.js @@ -37,7 +37,7 @@ const validation = () => result = {valid: false, message: `${$name} cannot be provided if the 'radiation_boost' field is '${radiationBoost}'.`} } } - else if (($row.radiation_boost === null) && (currField)) { + else if ((!$row.radiation_boost) && (currField)) { result = {valid: false, message: `'${$name}' requires the 'radiation_boost' field.` } } return result;