From 404dae8dff2f90f853c2ba061d9f8175f8bdb880 Mon Sep 17 00:00:00 2001 From: Ayaka Mikazuki Date: Mon, 27 Mar 2023 17:40:45 +1000 Subject: [PATCH] fix bug --- src/components/ApiPopup/ApiPopup.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/ApiPopup/ApiPopup.tsx b/src/components/ApiPopup/ApiPopup.tsx index d956f47..5425a91 100644 --- a/src/components/ApiPopup/ApiPopup.tsx +++ b/src/components/ApiPopup/ApiPopup.tsx @@ -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); }