diff --git a/apps/api/src/models/rules/account-cluster-risk/single-account.ts b/apps/api/src/models/rules/account-cluster-risk/single-account.ts index 22e789041..ef549e579 100644 --- a/apps/api/src/models/rules/account-cluster-risk/single-account.ts +++ b/apps/api/src/models/rules/account-cluster-risk/single-account.ts @@ -35,7 +35,7 @@ export class AccountClusterRiskSingleAccount extends Rule { } public getConfiguration() { - return {}; + return undefined; } public getSettings({ xRayRules }: UserSettings): RuleSettings { diff --git a/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts b/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts index d5b586cdc..573795799 100644 --- a/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts +++ b/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts @@ -62,7 +62,7 @@ export class CurrencyClusterRiskBaseCurrencyCurrentInvestment extends Rule { } public getConfiguration() { - return {}; + return undefined; } public getSettings({ baseCurrency, xRayRules }: UserSettings): Settings { diff --git a/apps/client/src/app/components/rule/rule.component.html b/apps/client/src/app/components/rule/rule.component.html index aed14da63..7cea512e3 100644 --- a/apps/client/src/app/components/rule/rule.component.html +++ b/apps/client/src/app/components/rule/rule.component.html @@ -62,11 +62,7 @@ - @if ( - rule?.isActive && - (rule?.configuration?.thresholdMax || - rule?.configuration?.thresholdMin) - ) { + @if (rule?.isActive && rule?.configuration) {