From 7de2de3bac94fcdbcc1afc6556aeee5982da89cd Mon Sep 17 00:00:00 2001 From: Rebecca Eveland Date: Fri, 27 Sep 2024 10:21:27 -0500 Subject: [PATCH] fix: Yes/No resource amounts will now just show "Yes" or "No" for their allocation amount --- src/projects-browser/Project.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/projects-browser/Project.jsx b/src/projects-browser/Project.jsx index ce707f8..c25dff8 100644 --- a/src/projects-browser/Project.jsx +++ b/src/projects-browser/Project.jsx @@ -8,8 +8,8 @@ const Project = ({ project }) => { let units = resource.units ? resource.units : resource.resourceUnits; const amount = resource.allocation ? resource.allocation : resource.amount; - if(units == "[Yes = 1, No = 0]"){ - return resource.allocation == "1.0" ? "Yes" : "No" + if(units == "[Yes = 1, No = 0]" || units == "Yes / No"){ + return amount == "1.0" ? "Yes" : "No" } else { let allocation = "0"; if(parseInt(amount)){