removed async on local storage functions

This commit is contained in:
TaylorS15
2023-02-22 22:59:31 -05:00
parent fc239bb37e
commit 18b7402d56
3 changed files with 14 additions and 33 deletions

View File

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