Skip to content

Commit 9b87c63

Browse files
author
Danil Agafonov
committed
fix
1 parent b8ee931 commit 9b87c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const onSuccess = ({ action, next, response }, options) => {
2626

2727
export const onError = ({ action, next, error }, options) => {
2828
let errorObject;
29-
if (error instanceof Error) {
29+
if (!error.response) {
3030
errorObject = {
3131
data: error.message,
3232
status: 0

0 commit comments

Comments
 (0)