Added explicit any type on caught errors where needed

This commit is contained in:
Alejandro Celaya
2021-10-31 12:38:42 +01:00
parent e5f99d0893
commit 944b166e43
11 changed files with 11 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ export const getVisitsWithLoader = async <T extends Action<string> & { visits: V
const visits = await loadVisits();
dispatch({ ...extraFinishActionData, visits, type: actionMap.finish });
} catch (e) {
} catch (e: any) {
dispatch<ApiErrorAction>({ type: actionMap.error, errorData: parseApiError(e) });
}
};