We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ee931 commit 9b87c63Copy full SHA for 9b87c63
src/defaults.js
@@ -26,7 +26,7 @@ export const onSuccess = ({ action, next, response }, options) => {
26
27
export const onError = ({ action, next, error }, options) => {
28
let errorObject;
29
- if (error instanceof Error) {
+ if (!error.response) {
30
errorObject = {
31
data: error.message,
32
status: 0
0 commit comments