Skip to content

Commit

Permalink
fix: Yes/No resource amounts will now just show "Yes" or "No" for the…
Browse files Browse the repository at this point in the history
…ir allocation amount
  • Loading branch information
rebeccaeve committed Sep 27, 2024
1 parent 062955b commit 7de2de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/projects-browser/Project.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand Down

0 comments on commit 7de2de3

Please sign in to comment.