File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ apiClient.interceptors.response.use(
24
24
if ( error . response . status === 401 || error . response . status === 419 ) {
25
25
store . dispatch ( "auth/logout" ) ;
26
26
}
27
- return Promise . reject ( error . response ) ;
27
+ return Promise . reject ( error ) ;
28
28
}
29
29
) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ authClient.interceptors.response.use(
17
17
if ( error . response . status === 401 || error . response . status === 419 ) {
18
18
store . dispatch ( "auth/logout" ) ;
19
19
}
20
- return Promise . reject ( error . response ) ;
20
+ return Promise . reject ( error ) ;
21
21
}
22
22
) ;
23
23
Original file line number Diff line number Diff line change 1
1
export const getError = ( error ) => {
2
- console . debug ( { error } ) ;
2
+ console . debug ( { error } ) ; // remove in production
3
3
return error . data && error . data . errors ? error . data . errors : error ;
4
4
} ;
You can’t perform that action at this time.
0 commit comments