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