Feature/improve message for data provider errors (#1003)

* Add title

* Update changelog
pull/1006/head^2
Thomas Kaul 3 years ago committed by GitHub
parent 5329e45e2c
commit bd33855a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Improved the message for data provider errors in the client
- Changed the label from _Balance_ to _Cash Balance_ in the account dialog - Changed the label from _Balance_ to _Cash Balance_ in the account dialog
## 1.157.0 - 11.06.2022 ## 1.157.0 - 11.06.2022

@ -81,9 +81,11 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit {
} }
public onShowErrors() { public onShowErrors() {
const errorMessageParts = this.errors.map((error) => { const errorMessageParts = ['Data Provider Errors for'];
return `${error.symbol} (${error.dataSource})`;
}); for (const error of this.errors) {
errorMessageParts.push(`${error.symbol} (${error.dataSource})`);
}
alert(errorMessageParts.join('\n')); alert(errorMessageParts.join('\n'));
} }

Loading…
Cancel
Save