diff --git a/src/adapters/network.js b/src/adapters/network.js index cfe8f46002..e5c7723783 100644 --- a/src/adapters/network.js +++ b/src/adapters/network.js @@ -141,8 +141,8 @@ const getResponseDetails = (clientResponse) => { }; const getHttpMethodArgs = (method, { url, data, requestOptions }) => { - const lowercasedMethod = method?.toLowerCase?.(); - switch (lowercasedMethod) { + const requestMethod = method?.toLowerCase?.(); + switch (requestMethod) { case 'post': case 'put': case 'patch':