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 24, 2024
1 parent 7d8a502 commit 05ab47a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/hooks/use-axios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ErrorResponse>
if (error.response) {
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 05ab47a

Please sign in to comment.