mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 17:43:58 +01:00
fix bug
This commit is contained in:
parent
191739d995
commit
404dae8dff
|
@ -10,7 +10,6 @@ const ApiPopup = () => {
|
|||
|
||||
const apiKey = useStore((state) => state.apiKey);
|
||||
const setApiKey = useStore((state) => state.setApiKey);
|
||||
const setApiFree = useStore((state) => state.setApiFree);
|
||||
const firstVisit = useStore((state) => state.firstVisit);
|
||||
const setFirstVisit = useStore((state) => state.setFirstVisit);
|
||||
|
||||
|
@ -23,7 +22,6 @@ const ApiPopup = () => {
|
|||
setError(t('noApiKeyWarning', { ns: 'api' }) as string);
|
||||
} else {
|
||||
setError('');
|
||||
setApiFree(false);
|
||||
setApiKey(_apiKey);
|
||||
setIsModalOpen(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue