Skip to content

Commit f23e10a

Browse files
committed
♻️ fix linter warning
1 parent 1f6ad66 commit f23e10a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios, { AxiosError } from 'axios';
1+
import { AxiosError, isAxiosError } from 'axios';
22
import {
33
DELEGATE_TO_FRONTEND_CODE,
44
IntegrationErrorType,
@@ -12,7 +12,7 @@ export const throwAndDelegateError = (
1212
apiKey: string | undefined,
1313
logMessage?: string,
1414
) => {
15-
const errorMessage = axios.isAxiosError(error)
15+
const errorMessage = isAxiosError(error)
1616
? error.response?.data
1717
? JSON.stringify(error.response?.data)
1818
: error.message

0 commit comments

Comments
 (0)