From 9933f6213db3a70bec730543b3993b219194ba04 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 12 Jun 2022 08:48:52 +0200 Subject: [PATCH] Add title --- .../portfolio-performance.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index aae5e5f5e..1d2323676 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -81,9 +81,11 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit { } public onShowErrors() { - const errorMessageParts = this.errors.map((error) => { - return `${error.symbol} (${error.dataSource})`; - }); + const errorMessageParts = ['Data Provider Errors for']; + + for (const error of this.errors) { + errorMessageParts.push(`${error.symbol} (${error.dataSource})`); + } alert(errorMessageParts.join('\n')); }