diff --git a/apps/api/src/app/portfolio/current-rate.service.ts b/apps/api/src/app/portfolio/current-rate.service.ts index a17bdf57d..970bba7bf 100644 --- a/apps/api/src/app/portfolio/current-rate.service.ts +++ b/apps/api/src/app/portfolio/current-rate.service.ts @@ -70,12 +70,12 @@ export class CurrentRateService { symbol: dataGatheringItem.symbol }); } - if (result.length == 1) { - // getValues result of size 1 ("today only") means historical data is not - // synchronized. Queue up sync so that a refresh would pull more historical data. - this.dataGatheringService.gather7Days(); - } - + } + if (result.length == 1) { + // getValues result of size 1 ("today only") means historical data is not + // synchronized. Queue up sync so that a refresh would pull more historical data. + this.dataGatheringService.gather7Days(); + } return result; }) ); @@ -171,4 +171,4 @@ export class CurrentRateService { } return false; } -} \ No newline at end of file +}