From 05ab47a15e160c64136f034176d64cd25ef6ea1f Mon Sep 17 00:00:00 2001 From: YaroslavChuiko Date: Tue, 23 Jul 2024 15:13:09 +0300 Subject: [PATCH] fixed eslint errors --- src/hooks/use-axios.tsx | 3 ++- src/hooks/use-filter-query.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hooks/use-axios.tsx b/src/hooks/use-axios.tsx index e46d3f77d..0be39cfc8 100644 --- a/src/hooks/use-axios.tsx +++ b/src/hooks/use-axios.tsx @@ -50,7 +50,8 @@ const useAxios = < const responseData = transform ? transform(res.data) : res.data setResponse(responseData as TransformedResponse) setError(null) - onResponse && onResponse(responseData as TransformedResponse)?.catch() + onResponse && + void onResponse(responseData as TransformedResponse)?.catch() } catch (e) { const error = e as AxiosError if (error.response) { 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))