Skip to content

Commit

Permalink
fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavChuiko committed Jul 29, 2024
1 parent 67a7e68 commit a3de161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/hooks/use-axios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ErrorResponse>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-filter-query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const useFilterQuery = <T extends object>({
const updateFiltersInQuery: UpdateFiltersInQuery<T> = useCallback(
(valuesToUpdate) => {
for (const key in valuesToUpdate) {
const value = valuesToUpdate[key]!
const value = valuesToUpdate[key]

if (value) {
searchParams.set(String(key), String(value))
Expand Down

0 comments on commit a3de161

Please sign in to comment.