From f8b3595344547456edcf1c7b596ea35ef8b3c31b Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 16 Feb 2022 19:08:23 +0100 Subject: [PATCH] fixed test if value is set (#2092) fixes: #1386 --- src/clients/advanced/TokenLifespan.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clients/advanced/TokenLifespan.tsx b/src/clients/advanced/TokenLifespan.tsx index bb45278d51..88f8f4489d 100644 --- a/src/clients/advanced/TokenLifespan.tsx +++ b/src/clients/advanced/TokenLifespan.tsx @@ -42,7 +42,9 @@ export const TokenLifespan = ({ const onBlur = () => setFocused(false); const isExpireSet = (value: string | number) => - (typeof value === "number" && value !== -1) || focused; + (typeof value === "number" && value !== -1) || + (typeof value === "string" && value !== "" && value !== "-1") || + focused; return (