Skip to content

Commit

Permalink
Merge pull request #573 from rakesh-wt-egov/patch-3
Browse files Browse the repository at this point in the history
removed other modules from localization calls
  • Loading branch information
pradeepkumarcm-egov authored Sep 13, 2023
2 parents 5bed79d + 14f7b97 commit 99d4772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const StoreService = {
// .map((tenant) => ({ i18nKey: `TENANT_TENANTS_${tenant.code.replace(".", "_").toUpperCase()}`, ...tenant }));

await LocalizationService.getLocale({
modules: [`rainmaker-common`, `rainmaker-${stateCode.toLowerCase()}`, `rainmaker-works`],
modules: [`rainmaker-common`],
locale: initData.selectedLanguage,
tenantId: stateCode,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const DesktopInbox = ({
let result;
if (isLoading) {
result = <Loader />;
} else if (data && data.length === 0) {
} else if (data && data?.length === 0) {
result = (
<Card style={{ marginTop: 20 }}>
{t(LOCALE.NO_COMPLAINTS_EMPLOYEE)
Expand All @@ -89,7 +89,7 @@ const DesktopInbox = ({
))}
</Card>
);
} else if (data.length > 0) {
} else if (data?.length > 0) {
result = (
<ComplaintTable
t={t}
Expand Down

0 comments on commit 99d4772

Please sign in to comment.