Skip to content

Commit

Permalink
AG-1398 fix bug with pValues not showing when value is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
sagely1 committed Mar 20, 2024
1 parent 50a9b1f commit ee3310a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<div class="gct-details-panel-data">
<div>
<div>{{ data.valueLabel }}</div>
<div *ngIf="data.pValue">P-Value</div>
<div>P-Value</div>
</div>
<div>
<div>{{ getSignificantFigures(data.value, 3) }}</div>
<div *ngIf="data.pValue">
<div>
{{ getSignificantFigures(data.pValue, 3) }}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ export class GeneComparisonToolDetailsPanelComponent {
}

getSignificantFigures(n: any, b: any) {
const emdash = '&#8212;'; // Shift+Option+Hyphen
if (n === null || n === undefined)
return emdash;
return this.helperService.getSignificantFigures(n, b);
}

Expand Down

0 comments on commit ee3310a

Please sign in to comment.