This commit is contained in:
Ayaka Mikazuki 2023-03-27 17:40:45 +10:00
parent 191739d995
commit 404dae8dff

View file

@ -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);
} }