Skip to content

Commit

Permalink
removed other modules from localization calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-wt-egov authored Sep 13, 2023
1 parent 5bed79d commit 14f7b97
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 14f7b97

Please sign in to comment.