Skip to content

Commit

Permalink
(chore) address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Achintha Isuru committed Nov 19, 2023
1 parent 7735423 commit 19bc95f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ export const NotificationChannelPage: FunctionComponent<NotificationChannelPageI
/**
* Check if the email provider is enabled for the tenant.
*/
const isEmailProviderEnabled: boolean = featureConfig.emailProviders?.enabled
const isEmailProviderEnabled: boolean = featureConfig?.emailProviders?.enabled
&& !(featureConfig?.emailProviders?.disabledFeatures?.includes("superTenantProvider")
&& organizationType === OrganizationType.SUPER_ORGANIZATION);

/**
* Check if the SMS provider is enabled for the tenant.
*/
const isSMSProviderEnabled: boolean = featureConfig.smsProviders?.enabled;
const isSMSProviderEnabled: boolean = featureConfig?.smsProviders?.enabled;

/**
* Handle connector advance setting selection.
Expand Down

0 comments on commit 19bc95f

Please sign in to comment.