usecallback deps

main
Cogent Apps 2023-03-10 14:04:01 -08:00 committed by GitHub
parent 242d01a13a
commit e3e435a283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ export default function Header(props: HeaderProps) {
const openSettings = useCallback(() => { const openSettings = useCallback(() => {
dispatch(setTab(openAIApiKey ? 'options' : 'user')); dispatch(setTab(openAIApiKey ? 'options' : 'user'));
}, [openAIApiKey]); }, [dispatch, openAIApiKey]);
const header = useMemo(() => ( const header = useMemo(() => (
<HeaderContainer> <HeaderContainer>