parent
5227115f05
commit
f8b3595344
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ export const TokenLifespan = ({
|
||||||
const onBlur = () => setFocused(false);
|
const onBlur = () => setFocused(false);
|
||||||
|
|
||||||
const isExpireSet = (value: string | number) =>
|
const isExpireSet = (value: string | number) =>
|
||||||
(typeof value === "number" && value !== -1) || focused;
|
(typeof value === "number" && value !== -1) ||
|
||||||
|
(typeof value === "string" && value !== "" && value !== "-1") ||
|
||||||
|
focused;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
|
|
Loading…
Reference in a new issue