Skip to content

Commit

Permalink
fix: change nc with 0 when relatable in consultation (Fixes #1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias committed Aug 7, 2023
1 parent f3a065d commit 741140d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ export class BalancedRepresentation extends JsonEntity<BalancedRepresentationPro
public fromJson(json: EntityPropsToJson<BalancedRepresentationProps>) {
const props: BalancedRepresentationProps = {};

if (json.executiveMenPercent) props.executiveMenPercent = new Percentage(json.executiveMenPercent);
if (json.executiveWomenPercent) props.executiveWomenPercent = new Percentage(json.executiveWomenPercent);
if (json.memberMenPercent) props.memberMenPercent = new Percentage(json.memberMenPercent);
if (json.memberWomenPercent) props.memberWomenPercent = new Percentage(json.memberWomenPercent);
if (typeof json.executiveMenPercent === "number")
props.executiveMenPercent = new Percentage(json.executiveMenPercent);
if (typeof json.executiveWomenPercent === "number")
props.executiveWomenPercent = new Percentage(json.executiveWomenPercent);
if (typeof json.memberMenPercent === "number") props.memberMenPercent = new Percentage(json.memberMenPercent);
if (typeof json.memberWomenPercent === "number") props.memberWomenPercent = new Percentage(json.memberWomenPercent);
if (json.notComputableReasonExecutives)
props.notComputableReasonExecutives = new NotComputableReasonExecutiveRepEq(json.notComputableReasonExecutives);
if (json.notComputableReasonMembers)
Expand Down

0 comments on commit 741140d

Please sign in to comment.