Fix handling of non-positive expiry times in punishment history
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user