@zeniai/client-epic-state 4.10.13 → 4.10.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ export declare const isBankConnectionsTabVisible: (currentTenant: CurrentTenant
7
7
  export declare const isBusinessVerificationTabVisible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
8
8
  export declare const isCompanyDetailsTabVisible: (userRole: UserRoleType[], currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
9
9
  export declare const isIntegrationsTabVisible: (userRole: UserRoleType[], currentTenant: CurrentTenant | undefined) => boolean;
10
- export declare const isSettingsVisible: (currentTenant: CurrentTenant) => boolean;
10
+ export declare const isSettingsVisible: (currentTenant: CurrentTenant | undefined) => boolean;
11
11
  export declare const isMyBankConnectionsTabVisible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
12
12
  export declare const isRemindersSectionVisibleOnSettingsPage: (reminderNotificationSettings: ReminderNotificationSettingsData) => boolean;
13
13
  export declare const isMonthEndNotificationsSectionVisibleOnSettingsPage: (monthEndInsightsNotificationSettings: MonthEndInsightsNotificationSettingsData, signedInUseEmail: string) => boolean;
@@ -96,6 +96,9 @@ const isIntegrationsTabVisible = (userRole, currentTenant) => {
96
96
  exports.isIntegrationsTabVisible = isIntegrationsTabVisible;
97
97
  const isSettingsVisible = (currentTenant) => {
98
98
  var _a, _b;
99
+ if (currentTenant == null) {
100
+ return false;
101
+ }
99
102
  return ((_b = (_a = currentTenant.company) === null || _a === void 0 ? void 0 : _a.companyOnboardingInfo.isOnboardingCompleted) !== null && _b !== void 0 ? _b : false);
100
103
  };
101
104
  exports.isSettingsVisible = isSettingsVisible;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.13",
3
+ "version": "4.10.14",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",