From 317f900d5274a09f662b26fbe8a9987c450d724b Mon Sep 17 00:00:00 2001 From: oliver Date: Wed, 10 Jun 2026 19:59:07 -0300 Subject: [PATCH] Update app.js --- app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 4860af2..135036a 100644 --- a/app.js +++ b/app.js @@ -1552,8 +1552,12 @@ function renderContract(data) { // Look up expires from the agent data (new field in agents list API) const agent = agents.find((a) => (a.UUID || a.uuid) === activeUUID); - const expires = agent ? stripQuotes(agent.expires || "") : ""; - const hasExpiry = expires && expires !== "null" && expires !== ""; + const rawExpires = + agent && agent.expires + ? String(agent.expires).replace(/^"|"$/g, "").trim() + : ""; + const hasExpiry = rawExpires && rawExpires !== "null" && rawExpires !== ""; + const expires = hasExpiry ? rawExpires : ""; const label = product && period