diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js
index a28e361bd13c5..0a6c6045eee81 100644
--- a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js
+++ b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.container.js
@@ -10,10 +10,9 @@ import { getLicense, getExpirationDateFormatted, isExpired } from '../../../stor
const mapStateToProps = (state) => {
const { isActive, type } = getLicense(state);
- const typeTitleCase = type.charAt(0).toUpperCase() + type.substr(1).toLowerCase();
return {
status: isActive ? 'Active' : 'Inactive',
- type: typeTitleCase,
+ type,
isExpired: isExpired(state),
expiryDate: getExpirationDateFormatted(state)
};
diff --git a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js
index 666db5ecc2a31..23fa577534719 100644
--- a/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js
+++ b/x-pack/plugins/license_management/public/sections/license_dashboard/license_status/license_status.js
@@ -18,6 +18,7 @@ import {
export class LicenseStatus extends React.PureComponent {
render() {
const { isExpired, status, type, expiryDate } = this.props;
+ const typeTitleCase = type.charAt(0).toUpperCase() + type.substr(1).toLowerCase();
let icon;
let title;
let message;
@@ -28,7 +29,7 @@ export class LicenseStatus extends React.PureComponent {
Your license expired on {expiryDate}
);
- title = `Your ${type} license has expired`;
+ title = `Your ${typeTitleCase} license has expired`;
} else {
icon =