From 0f6ebb62148435aef373950c78a2ad992ce52c8c Mon Sep 17 00:00:00 2001 From: Shalini-CEG Date: Mon, 12 Jul 2021 21:28:30 +0530 Subject: [PATCH] Optimised --- src/services/api/loaded-services.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/services/api/loaded-services.js b/src/services/api/loaded-services.js index 6d708a1..44ddb2b 100644 --- a/src/services/api/loaded-services.js +++ b/src/services/api/loaded-services.js @@ -55,9 +55,7 @@ export async function getHome() { home = await ApiGetService( process.env.REACT_APP_HOME_URL + customer.id + "/" ); - } else { - home = await ApiGetService(process.env.REACT_APP_HOME_URL); - } + } else home = await ApiGetService(process.env.REACT_APP_HOME_URL); } // Handles post requests