From 97403cbb8b28e519d8f88db20b4ae2cfa51f51dd Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 1 Mar 2022 11:35:51 -0500 Subject: [PATCH 1/2] CSR-297 empty object valid --- src/global-methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global-methods.js b/src/global-methods.js index a0023ef4c..bb202de13 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -19,7 +19,7 @@ export default { }).then( (response) => { if (response.status == httpStatusCodes.OK) { - if(response.data == undefined || response.data == {}) { + if(response.data == undefined) { reject(response); }else{ resolve(response); From 2fe651c47405d695a0e1748f0acc88aa5550479c Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 1 Mar 2022 11:52:17 -0500 Subject: [PATCH 2/2] CSR-297 change to const --- src/global-methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global-methods.js b/src/global-methods.js index bb202de13..788d4c2e4 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -5,7 +5,7 @@ import httpStatusCodes from "http-status-codes"; export default { callHttpClient({ method, endpoint, payload }) { return new Promise((resolve, reject) => { - var apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL; + const apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL; const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass", });