From dafc872758460507c23e960b5a16ab49a4fa4e1f Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Mon, 18 Apr 2022 10:15:31 +0200 Subject: [PATCH] Fix data source of Fear & Greed Index --- apps/api/src/app/info/info.service.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/info/info.service.ts b/apps/api/src/app/info/info.service.ts index 67bd62a62..60df05c51 100644 --- a/apps/api/src/app/info/info.service.ts +++ b/apps/api/src/app/info/info.service.ts @@ -52,9 +52,15 @@ export class InfoService { } if (this.configurationService.get('ENABLE_FEATURE_FEAR_AND_GREED_INDEX')) { - info.fearAndGreedDataSource = encodeDataSource( - ghostfolioFearAndGreedIndexDataSource - ); + if ( + this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') === true + ) { + info.fearAndGreedDataSource = encodeDataSource( + ghostfolioFearAndGreedIndexDataSource + ); + } else { + info.fearAndGreedDataSource = ghostfolioFearAndGreedIndexDataSource; + } } if (this.configurationService.get('ENABLE_FEATURE_IMPORT')) {