From dfdaadeb65d4c33938136d8f87dc4de578462e7f Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Fri, 7 Jun 2024 16:33:37 +0200 Subject: [PATCH] fixup! Fix linting issues --- src/api/hooks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);