diff --git a/CHANGELOG.md b/CHANGELOG.md index b641847b1..6e35b9741 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Improved the validation in the activities import - Improved the language localization for German (`de`) - Refreshed the cryptocurrencies list diff --git a/apps/api/src/app/import/import.service.ts b/apps/api/src/app/import/import.service.ts index 026f3610e..da0e4806c 100644 --- a/apps/api/src/app/import/import.service.ts +++ b/apps/api/src/app/import/import.service.ts @@ -566,7 +566,7 @@ export class ImportService { ]) )?.[symbol]; - if (!assetProfile) { + if (!assetProfile?.name) { throw new Error( `activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")` );