From 9f94ec693639deb0c7bf8aebee5b99457f36cedb Mon Sep 17 00:00:00 2001 From: Ruben Thoms <69145689+rubenthoms@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:13:56 +0200 Subject: [PATCH] Fixed wrong class usage in `useSettingsStatusWriter` (#423) --- frontend/src/framework/StatusWriter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/framework/StatusWriter.ts b/frontend/src/framework/StatusWriter.ts index a71aa4266..6611ab1f5 100644 --- a/frontend/src/framework/StatusWriter.ts +++ b/frontend/src/framework/StatusWriter.ts @@ -62,10 +62,10 @@ export function useViewStatusWriter(moduleContext: ModuleContext): ViewStat return statusWriter.current; } -export function useSettingsStatusWriter(moduleContext: ModuleContext): ViewStatusWriter { +export function useSettingsStatusWriter(moduleContext: ModuleContext): SettingsStatusWriter { const statusController = moduleContext.getStatusController(); - const statusWriter = React.useRef(new ViewStatusWriter(statusController)); + const statusWriter = React.useRef(new SettingsStatusWriter(statusController)); statusController.clearMessages(StatusSource.Settings); statusController.incrementReportedComponentRenderCount(StatusSource.Settings);