From fd2a4bcc0226381cb69d8f67a395af32a9b107b1 Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Mon, 16 Oct 2023 11:04:21 +0200 Subject: [PATCH] Fixed wrong class usage in `useSettingsStatusWriter` --- 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);