From c4b9e907ac20c9fd0232836cf1f36dcac68a27bf Mon Sep 17 00:00:00 2001 From: Chang-Yen Tseng <10328757+Summon528@users.noreply.github.com> Date: Wed, 26 Jun 2024 19:07:57 -0700 Subject: [PATCH] Check assetProfile.symbol instead of name during import --- apps/api/src/app/import/import.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/app/import/import.service.ts b/apps/api/src/app/import/import.service.ts index 9b8668158..1c67bf889 100644 --- a/apps/api/src/app/import/import.service.ts +++ b/apps/api/src/app/import/import.service.ts @@ -610,7 +610,7 @@ export class ImportService { }; if (type === 'BUY' || type === 'DIVIDEND' || type === 'SELL') { - if (!assetProfile?.name) { + if (!assetProfile?.symbol) { throw new Error( `activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")` );