Skip to content

Commit

Permalink
Fixed sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavLys committed Jul 29, 2024
1 parent b8944b8 commit eb4e2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/use-axios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const useAxios = <
const responseData = transform ? transform(res.data) : res.data
setResponse(responseData as TransformedResponse)
setError(null)
onResponse &&
void onResponse(responseData as TransformedResponse)?.catch()
// eslint-disable-next-line @typescript-eslint/no-floating-promises
onResponse && onResponse(responseData as TransformedResponse)?.catch()
} catch (e) {
const error = e as AxiosError<ErrorResponse>
if (error.response) {
Expand Down

0 comments on commit eb4e2fe

Please sign in to comment.