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))