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:
parent
1f46a6b6f3
commit
c6aa06b933
@ -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
|
||||
- Refreshed the cryptocurrencies list
|
||||
|
||||
## 1.305.0 - 2023-09-03
|
||||
|
@ -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}")`
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user