From 5bb02c85f0a71c31327067c69707eb986d0b60cc Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 1 Jan 2020 15:10:12 +0000 Subject: [PATCH] Should fix certificate status not showing --- src/commands/parseall.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/parseall.ts b/src/commands/parseall.ts index 887df58..ea119c5 100644 --- a/src/commands/parseall.ts +++ b/src/commands/parseall.ts @@ -35,7 +35,8 @@ export default class Parseall extends Command { const timeObject: {years: number, months: number, days: number, hours: number, minutes: number, seconds: number, firstDateWasLater: boolean} = moment.preciseDiff(new Date(), notAfter, true); const precise: [number, string][] = []; // @ts-ignore - const timeArray: number[] = Object.values(timeObject).filter((v) => !isNaN(v)).forEach((t: number) => { // eslint-disable-line + const timeArray: number[] = Object.values(timeObject).filter((v) => typeof v === 'number'); + timeArray.forEach((t) => { // eslint-disable-line const index = timeArray.indexOf(t); const measurements = ['yr', 'mo', 'd', 'h', 'm', 's']; precise.push([t, measurements[index]]);