diff --git a/x-pack/plugins/monitoring/public/components/cluster/overview/license_text.js b/x-pack/plugins/monitoring/public/components/cluster/overview/license_text.js index f1dc1e4922c8..17cd262a078b 100644 --- a/x-pack/plugins/monitoring/public/components/cluster/overview/license_text.js +++ b/x-pack/plugins/monitoring/public/components/cluster/overview/license_text.js @@ -26,7 +26,7 @@ export function LicenseText({ license, showLicenseExpiration }) { return ( - {capitalize(license.type)} license + {capitalize(license.type)} license ); } diff --git a/x-pack/plugins/monitoring/public/views/license/controller.js b/x-pack/plugins/monitoring/public/views/license/controller.js index 49dbec438f0b..e69c2df648bd 100644 --- a/x-pack/plugins/monitoring/public/views/license/controller.js +++ b/x-pack/plugins/monitoring/public/views/license/controller.js @@ -49,9 +49,9 @@ export class LicenseViewController { renderReact($scope) { $scope.$evalAsync(() => { const { isPrimaryCluster, license, isExpired, uploadLicensePath } = this; - let expiryDate = license.expiry_date; - if (license.expiry_date !== undefined) { - expiryDate = formatDateTimeLocal(license.expiry_date); + let expiryDate = license.expiry_date_in_millis; + if (license.expiry_date_in_millis !== undefined) { + expiryDate = formatDateTimeLocal(license.expiry_date_in_millis); } // Mount the React component to the template