Fixed Tenant License crash in tenant details (#2644)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-02-07 22:30:25 -06:00
committed by GitHub
parent f0b39a6b6b
commit 894f6ce131

View File

@@ -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();