diff --git a/apps/api/src/app/import/import.service.ts b/apps/api/src/app/import/import.service.ts index 3b7290b43..813d7cfd8 100644 --- a/apps/api/src/app/import/import.service.ts +++ b/apps/api/src/app/import/import.service.ts @@ -328,7 +328,8 @@ export class ImportService { date ); - if (!unitPrice) { + // unitPrice can be 0 if it's a fee record + if (unitPrice === undefined) { throw new Error( `activities.${index} historical exchange rate at ${format( date,