Skip to content

Commit

Permalink
NOBUG dont show historical average popup if it doesnt exist (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronpettit authored Mar 13, 2024
1 parent 603fc25 commit 91157ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/forms/root-form/root-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ export class RootFormComponent implements OnInit, OnDestroy {

getPopoverData(controlName, money = false) {
let variance = this.varianceData?.find((e) => e.key === controlName);
if (!variance?.historicalAverage) {
return null;
}
if (money && variance) {
variance['money'] = true;
if (variance?.historicalAverage && typeof variance?.historicalAverage == 'number') {
Expand Down

0 comments on commit 91157ff

Please sign in to comment.