From 17b7a68b60eecf5830d6f3f001d0367f0aea33eb Mon Sep 17 00:00:00 2001 From: Cogent Apps <127109874+cogentapps@users.noreply.github.com> Date: Thu, 9 Mar 2023 12:18:52 -0800 Subject: [PATCH] eslint fixes --- src/chat-manager.ts | 3 ++- src/components/header.tsx | 2 +- src/elevenlabs.tsx | 2 +- src/use-chat.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/chat-manager.ts b/src/chat-manager.ts index a0f82cd..083ff9a 100644 --- a/src/chat-manager.ts +++ b/src/chat-manager.ts @@ -297,4 +297,5 @@ export class Search { } } -export default new ChatManager(); +const chatManager = new ChatManager(); +export default chatManager; diff --git a/src/components/header.tsx b/src/components/header.tsx index 3aa683e..c8dd200 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -138,7 +138,7 @@ export default function Header(props: HeaderProps) { const openSettings = useCallback(() => { context.settings.open(context.apiKeys.openai ? 'options' : 'user'); - }, [context, context.apiKeys.openai]); + }, [context]); return diff --git a/src/elevenlabs.tsx b/src/elevenlabs.tsx index ad62955..0e3b0e6 100644 --- a/src/elevenlabs.tsx +++ b/src/elevenlabs.tsx @@ -307,7 +307,7 @@ export function ElevenLabsReaderButton(props: { selector: string }) { } else { reader.current.stop(); } - }, [status, props.selector, context.apiKeys.elevenlabs]); + }, [status, props.selector, context.apiKeys.elevenlabs, context.settings, context.voice.id]); return (