Skip to content

Commit

Permalink
pr resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
aaradhya-egov committed Sep 9, 2024
1 parent e3124b0 commit 65cb39e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const LocationSelection = () => {
let hookResult = { data: null, isLoading: false };

// Check the value of window.globalPath
if (window?.globalPath === 'sandbox-ui') {
if (Digit.Utils.getMultiRootTenant()) {
// Call the useTenants hook only if the condition is met
hookResult = Digit.Hooks.useTenants();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const { data: TenantMngmtSearch, isLoading: isLoadingTenantMngmtSearch } = Digit
}, [fetchedLocalities]);

useEffect(() => {
if(Digit.Utils.getMultiRootTenant()){
if(!Digit.Utils.getMultiRootTenant()){
const city = cities.find((obj) => obj.pincode?.find((item) => item == pincode));
if (city?.code&&city?.code === getCities()?.[0]?.code) {
setPincodeNotValid(false);
Expand Down

0 comments on commit 65cb39e

Please sign in to comment.