diff --git a/src/api/hooks.js b/src/api/hooks.js index cd50959..3797c2b 100644 --- a/src/api/hooks.js +++ b/src/api/hooks.js @@ -111,7 +111,8 @@ const useAPIPatch = createAPIHook("PATCH"); const useAPIPut = createAPIHook("PUT"); const useAPIDelete = createAPIHook("DELETE"); -function useAPIPolling(endpoint, until, delay = 1000) { +/* eslint-disable default-param-last */ +function useAPIPolling(endpoint, delay = 1000, until) { // delay ms const [state, setState] = useState({ state: API_STATE.INIT }); const [getResponse, get] = useAPIGet(endpoint);