Skip to content

Commit

Permalink
Subject: Interceptor modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamibadd committed Oct 6, 2022
1 parent 5928c97 commit 335e07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interceptors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ api.interceptors.response.use((response) => {
return response.data;
}, (error) => {
// Handle response error here
return Promise.reject(error?.response?.data?.message || error?.response?.data);
return Promise.reject({message: error?.response?.data?.message || error?.response?.data});
});

export default api;

0 comments on commit 335e07a

Please sign in to comment.