From 53f67a50752cfb1408711f4e20a4d1511a71b4dd Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Fri, 18 Apr 2025 18:46:14 +0200 Subject: [PATCH] Fix handling of non-positive expiry times in punishment history --- frontend/src/app/bans/history/history.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts index dca33d5..fa1959b 100644 --- a/frontend/src/app/bans/history/history.component.ts +++ b/frontend/src/app/bans/history/history.component.ts @@ -79,7 +79,7 @@ export class HistoryComponent implements OnInit, OnChanges { } public getExpiredTime(entry: PunishmentHistoryInner) { - if (entry.expiryTime === 0) { + if (entry.expiryTime <= 0) { return "Permanent " + this.getType(entry); } const date = new Date(entry.expiryTime);