Skip to content

Commit eb6c94c

Browse files
committed
fix: getIsRequestAborted error message
1 parent f51745c commit eb6c94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,4 @@ export const abortPreviousRequests = <T>(
247247
*/
248248
export const getIsRequestAborted = (error) =>
249249
// The 0 code is common for aborted and blocked requests
250-
error && error.code === 0 && error.message === 'The user aborted a request.'
250+
error && error.code === 0 && (error.message === 'The user aborted a request.' || error.message === 'signal is aborted without reason')

0 commit comments

Comments
 (0)