mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 21:43:59 +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 apiKey = useStore((state) => state.apiKey);
|
||||||
const setApiKey = useStore((state) => state.setApiKey);
|
const setApiKey = useStore((state) => state.setApiKey);
|
||||||
const setApiFree = useStore((state) => state.setApiFree);
|
|
||||||
const firstVisit = useStore((state) => state.firstVisit);
|
const firstVisit = useStore((state) => state.firstVisit);
|
||||||
const setFirstVisit = useStore((state) => state.setFirstVisit);
|
const setFirstVisit = useStore((state) => state.setFirstVisit);
|
||||||
|
|
||||||
|
@ -23,7 +22,6 @@ const ApiPopup = () => {
|
||||||
setError(t('noApiKeyWarning', { ns: 'api' }) as string);
|
setError(t('noApiKeyWarning', { ns: 'api' }) as string);
|
||||||
} else {
|
} else {
|
||||||
setError('');
|
setError('');
|
||||||
setApiFree(false);
|
|
||||||
setApiKey(_apiKey);
|
setApiKey(_apiKey);
|
||||||
setIsModalOpen(false);
|
setIsModalOpen(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue