From 52995bd5fe9c5d291dacfbd4efb30d172b4eb098 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 1 Jul 2024 17:23:16 +0530 Subject: [PATCH] chore: fix error response handling in commonHandler --- src/adapters/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/network.js b/src/adapters/network.js index e5c7723783..86af19d6a1 100644 --- a/src/adapters/network.js +++ b/src/adapters/network.js @@ -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;