diff --git a/apps/client/src/app/components/rule/rule.component.ts b/apps/client/src/app/components/rule/rule.component.ts index a68ea7bd7..6e6c368f0 100644 --- a/apps/client/src/app/components/rule/rule.component.ts +++ b/apps/client/src/app/components/rule/rule.component.ts @@ -57,13 +57,11 @@ export class RuleComponent implements OnInit { .pipe(takeUntil(this.unsubscribeSubject)) .subscribe((settings: PortfolioReportRule['settings']) => { if (settings) { - const updatedSettings: UpdateUserSettingDto = { + this.ruleUpdated.emit({ xRayRules: { [rule.key]: settings } - }; - - this.ruleUpdated.emit(updatedSettings); + }); } }); }