From 5158c89103cdbc5e612cd03b51395f227f5af4ed Mon Sep 17 00:00:00 2001 From: Alex P Date: Mon, 6 Oct 2025 22:13:21 +0300 Subject: [PATCH] fix: Replace 'any' with proper React.ChangeEvent type in AudioPopover Replace 'as any' type assertions with proper React.ChangeEvent type for synthetic events passed to audio toggle handlers. --- ui/src/components/popovers/AudioPopover.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/popovers/AudioPopover.tsx b/ui/src/components/popovers/AudioPopover.tsx index 6750b660..55261ef5 100644 --- a/ui/src/components/popovers/AudioPopover.tsx +++ b/ui/src/components/popovers/AudioPopover.tsx @@ -128,7 +128,7 @@ export default function AudioPopover() { size="SM" theme={audioOutputEnabled ? "light" : "primary"} text={audioOutputEnabled ? "Disable" : "Enable"} - onClick={() => handleAudioOutputEnabledToggle({ target: { checked: !audioOutputEnabled } } as any)} + onClick={() => handleAudioOutputEnabledToggle({ target: { checked: !audioOutputEnabled } } as React.ChangeEvent)} /> @@ -169,7 +169,7 @@ export default function AudioPopover() { size="SM" theme={audioInputEnabled ? "light" : "primary"} text={audioInputEnabled ? "Disable" : "Enable"} - onClick={() => handleAudioInputEnabledToggle({ target: { checked: !audioInputEnabled } } as any)} + onClick={() => handleAudioInputEnabledToggle({ target: { checked: !audioInputEnabled } } as React.ChangeEvent)} />