From a3de161902f14224bd28e078851f0e32ce946ab5 Mon Sep 17 00:00:00 2001 From: YaroslavChuiko Date: Mon, 29 Jul 2024 12:58:26 +0300 Subject: [PATCH] fixed eslint errors --- src/hooks/use-axios.tsx | 1 + src/hooks/use-filter-query.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/use-axios.tsx b/src/hooks/use-axios.tsx index e46d3f77d..ff377af1c 100644 --- a/src/hooks/use-axios.tsx +++ b/src/hooks/use-axios.tsx @@ -50,6 +50,7 @@ const useAxios = < const responseData = transform ? transform(res.data) : res.data setResponse(responseData as TransformedResponse) setError(null) + // eslint-disable-next-line @typescript-eslint/no-floating-promises onResponse && onResponse(responseData as TransformedResponse)?.catch() } catch (e) { const error = e as AxiosError diff --git a/src/hooks/use-filter-query.tsx b/src/hooks/use-filter-query.tsx index c6f7d9374..f88dea78f 100644 --- a/src/hooks/use-filter-query.tsx +++ b/src/hooks/use-filter-query.tsx @@ -33,7 +33,7 @@ export const useFilterQuery = ({ const updateFiltersInQuery: UpdateFiltersInQuery = useCallback( (valuesToUpdate) => { for (const key in valuesToUpdate) { - const value = valuesToUpdate[key]! + const value = valuesToUpdate[key] if (value) { searchParams.set(String(key), String(value))