Skip to content

Commit 3d8b98f

Browse files
authored
Show epoch expiry as no-expiry (#3459)
1 parent 06af416 commit 3d8b98f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web-app/src/screens/Console/Account/AccountUtils.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ export const ACCOUNT_TABLE_COLUMNS = [
2323
label: "Expiry",
2424
elementKey: "expiration",
2525
renderFunction: (expTime: string) => {
26-
if (expTime) {
26+
if (expTime !== "1970-01-01T00:00:00Z") {
2727
const fmtDate = DateTime.fromISO(expTime)
2828
.toUTC()
2929
.toFormat("y/M/d hh:mm:ss z");
3030

3131
return <span title={fmtDate}>{fmtDate}</span>;
32+
} else {
33+
return <span>no-expiry</span>;
3234
}
33-
return "";
3435
},
3536
},
3637
{

0 commit comments

Comments
 (0)