diff --git a/src/app/components/calculator-results/calculator-results.component.ts b/src/app/components/calculator-results/calculator-results.component.ts index a586149bb674a971f8adb00606e07e6ab9b73c50..487760c02a245897e2c29e6fafaecd195dba30e6 100644 --- a/src/app/components/calculator-results/calculator-results.component.ts +++ b/src/app/components/calculator-results/calculator-results.component.ts @@ -126,7 +126,12 @@ export class CalculatorResultsComponent { } private paramLabel(p: NgParameter): string { - return p.symbol + ": " + p.label + " (" + p.unit + ")"; + let res = p.symbol; + if (p.label != undefined && p.label != "") + res += ": " + p.label; + if (p.unit != undefined && p.unit != "") + res += " (" + p.unit + ")"; + return res; } // public show() {