From e3e435a283cb54a468fceadb1cf2f1e7d581782f Mon Sep 17 00:00:00 2001 From: Cogent Apps <127109874+cogentapps@users.noreply.github.com> Date: Fri, 10 Mar 2023 14:04:01 -0800 Subject: [PATCH] usecallback deps --- src/components/header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/header.tsx b/src/components/header.tsx index 86d85b0..8d777d1 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -143,7 +143,7 @@ export default function Header(props: HeaderProps) { const openSettings = useCallback(() => { dispatch(setTab(openAIApiKey ? 'options' : 'user')); - }, [openAIApiKey]); + }, [dispatch, openAIApiKey]); const header = useMemo(() => (