diff --git a/web/src/api/index.jsx b/web/src/api/index.jsx index 8e73891c4..a2f7d1d75 100644 --- a/web/src/api/index.jsx +++ b/web/src/api/index.jsx @@ -118,7 +118,7 @@ export function useDelete() { } export function useRetain() { - const { dispatch, state } = useContext(Api); + const { state } = useContext(Api); async function retainEvent(eventId, shouldRetain) { if (!eventId) return null; diff --git a/web/src/routes/Event.jsx b/web/src/routes/Event.jsx index a2e1a2f89..bbfe2bba4 100644 --- a/web/src/routes/Event.jsx +++ b/web/src/routes/Event.jsx @@ -18,18 +18,18 @@ import { FetchStatus, useApiHost, useEvent, useDelete, useRetain } from '../api' const ActionButtonGroup = ({ className, isRetained, handleClickRetain, handleClickDelete, close }) => (