From 894f6ce1318f563160a16ea08ae4ceebd0c73daf Mon Sep 17 00:00:00 2001 From: Alex <33497058+bexsoft@users.noreply.github.com> Date: Tue, 7 Feb 2023 22:30:25 -0600 Subject: [PATCH] Fixed Tenant License crash in tenant details (#2644) Signed-off-by: Benjamin Perez --- .../Console/Tenants/TenantDetails/SubnetLicenseTenant.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/SubnetLicenseTenant.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/SubnetLicenseTenant.tsx index b1a404331..5039e69e8 100644 --- a/portal-ui/src/screens/Console/Tenants/TenantDetails/SubnetLicenseTenant.tsx +++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/SubnetLicenseTenant.tsx @@ -99,7 +99,7 @@ const SubnetLicenseTenant = ({ licenseInfo, activateProduct, }: ISubnetLicenseTenant) => { - const expiryTime = tenant + const expiryTime = tenant?.subnet_license ? DateTime.fromISO(tenant.subnet_license.expires_at) : DateTime.now();