Skip to content

Commit

Permalink
feat: add diffs for budgets calculated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki authored and dleard committed May 26, 2023
1 parent 2d1933d commit c45e786
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ const AnticipatedFundingAmountPerFiscalYearWidget: React.FC<WidgetProps> = (
const anticipatedFunding = query.formChangesByProjectRevisionId?.edges[0]
?.node.anticipatedFundingAmountPerFiscalYear?.edges[0]
? [
query.formChangesByProjectRevisionId?.edges[0]?.node
.anticipatedFundingAmountPerFiscalYear?.edges[0],
...query.formChangesByProjectRevisionId?.edges[0]?.node
.anticipatedFundingAmountPerFiscalYear?.edges,
]
: [];

console.log("anticipatedFunding", anticipatedFunding);
// This ensures that a minimum of three fiscal years are displayed, even if the user hasn't filled out any milestone information yet
const placeholderFiscalYears = 3 - anticipatedFunding.length;
if (anticipatedFunding.length < 3) {
Expand Down

0 comments on commit c45e786

Please sign in to comment.