Fix handling of non-positive expiry times in punishment history
This commit is contained in:
1 parent
87a0b9ad1b
commit
53f67a5075
1 file changed
+1
-1
@@ -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