Skip to content

Commit

Permalink
fixed typechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Dec 14, 2020
1 parent b5e8b8e commit 3100644
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/plugins/alerts/server/lib/license_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { PLUGIN } from '../constants/plugin';
import { getAlertTypeFeatureUsageName } from './get_alert_type_feature_usage_name';
import { AlertType } from '../types';
import { AlertTypeDisabledError } from './errors/alert_type_disabled';
import { capitalize } from 'lodash';

export type ILicenseState = PublicMethodsOf<LicenseState>;

Expand Down Expand Up @@ -168,8 +167,8 @@ export class LicenseState {
throw new AlertTypeDisabledError(
i18n.translate('xpack.alerts.serverSideErrors.invalidLicenseErrorMessage', {
defaultMessage:
'Alert {alertTypeId} is disabled because it requires a {licenseType} license. Contact your administrator to upgrade your license.',
values: { alertTypeId: alertType.id, licenseType: capitalize(this.license!.type) },
'Alert {alertTypeId} is disabled because it requires a Gold license. Contact your administrator to upgrade your license.',
values: { alertTypeId: alertType.id },
}),
'license_invalid'
);
Expand Down

0 comments on commit 3100644

Please sign in to comment.