Feature/improve import validation (#2305)

* Improve import validation

* Update changelog

Co-authored-by: httpiga <36515569+httpiga@users.noreply.github.com>
This commit is contained in:
Thomas Kaul 2023-09-07 18:28:47 +02:00 committed by GitHub
parent 1f46a6b6f3
commit c6aa06b933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Improved the validation in the activities import
- Refreshed the cryptocurrencies list - Refreshed the cryptocurrencies list
## 1.305.0 - 2023-09-03 ## 1.305.0 - 2023-09-03

View File

@ -566,7 +566,7 @@ export class ImportService {
]) ])
)?.[symbol]; )?.[symbol];
if (!assetProfile) { if (!assetProfile?.name) {
throw new Error( throw new Error(
`activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")` `activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")`
); );