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

@@ -55,12 +55,11 @@ export default function APIKeyModal({
}
useEffect(() => {
async function getRecentDocs() {
const response = await getLocalRecentDocs();
function getRecentDocs() {
const response = getLocalRecentDocs();
if (response) {
const parsedResponse = JSON.parse(response) as Doc;
dispatch(setSelectedDocs(parsedResponse));
setLocalSelectedDocs(parsedResponse);
setModalState('INACTIVE');