Skip to content

Commit

Permalink
chore: fix error response handling in commonHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed Jul 1, 2024
1 parent 9272294 commit 52995bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const enhanceRequestOptions = (options) => {

const getResponseDetails = (clientResponse) => {
if (!clientResponse.success) {
const { response } = clientResponse;
const { response } = clientResponse.response;
// non 2xx status handling for axios response
if (response) {
const { data, status, headers } = response;
Expand Down

0 comments on commit 52995bd

Please sign in to comment.