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..7c0923d5c14f4 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 capitalizedType = type[0].toUpperCase() + type.slice(1); 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 ${capitalizedType} license has expired`; } else { icon = ; message = expiryDate ? ( @@ -38,7 +39,7 @@ export class LicenseStatus extends React.PureComponent { ) : ( Your license will never expire. ); - title = `Your ${type} license is ${status.toLowerCase()}`; + title = `Your ${capitalizedType} license is ${status.toLowerCase()}`; } return (