Update app.js
This commit is contained in:
@@ -1552,8 +1552,12 @@ function renderContract(data) {
|
|||||||
|
|
||||||
// Look up expires from the agent data (new field in agents list API)
|
// Look up expires from the agent data (new field in agents list API)
|
||||||
const agent = agents.find((a) => (a.UUID || a.uuid) === activeUUID);
|
const agent = agents.find((a) => (a.UUID || a.uuid) === activeUUID);
|
||||||
const expires = agent ? stripQuotes(agent.expires || "") : "";
|
const rawExpires =
|
||||||
const hasExpiry = expires && expires !== "null" && expires !== "";
|
agent && agent.expires
|
||||||
|
? String(agent.expires).replace(/^"|"$/g, "").trim()
|
||||||
|
: "";
|
||||||
|
const hasExpiry = rawExpires && rawExpires !== "null" && rawExpires !== "";
|
||||||
|
const expires = hasExpiry ? rawExpires : "";
|
||||||
|
|
||||||
const label =
|
const label =
|
||||||
product && period
|
product && period
|
||||||
|
|||||||
Reference in New Issue
Block a user