Skip to content

Commit 094cbe7

Browse files
committed
fix instanceof check
1 parent 78010a6 commit 094cbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/query/fetchBaseQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export function fetchBaseQuery({
305305
return {
306306
error: {
307307
status:
308-
e instanceof DOMException && e.name === 'TimeoutError'
308+
e instanceof Error && e.name === 'TimeoutError'
309309
? 'TIMEOUT_ERROR'
310310
: 'FETCH_ERROR',
311311
error: String(e),

0 commit comments

Comments
 (0)