usecallback deps
parent
242d01a13a
commit
e3e435a283
|
@ -143,7 +143,7 @@ export default function Header(props: HeaderProps) {
|
|||
|
||||
const openSettings = useCallback(() => {
|
||||
dispatch(setTab(openAIApiKey ? 'options' : 'user'));
|
||||
}, [openAIApiKey]);
|
||||
}, [dispatch, openAIApiKey]);
|
||||
|
||||
const header = useMemo(() => (
|
||||
<HeaderContainer>
|
||||
|
|
Loading…
Reference in New Issue