From 9ccfb4b893cff5a00819f288709064c82ed70c05 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:09:45 +0200 Subject: [PATCH] Refactoring --- apps/client/src/app/components/rule/rule.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); + }); } }); }