mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
removed async on local storage functions
This commit is contained in:
@@ -42,8 +42,8 @@ export default function APIKeyModal({
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
async function getApiKey() {
|
||||
const localKey = await getLocalApiKey();
|
||||
function getApiKey() {
|
||||
const localKey = getLocalApiKey();
|
||||
if (localKey) {
|
||||
dispatch(setApiKey(localKey));
|
||||
setKey(localKey);
|
||||
|
||||
Reference in New Issue
Block a user