From 8aed6f93f7740c592cbc0e2f9fd3269c05286077 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 14 Aug 2022 21:45:29 -0400 Subject: use default value for dateDelta --- src/lib/utils/BushUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/utils/BushUtils.ts b/src/lib/utils/BushUtils.ts index de01ac0..75aded3 100644 --- a/src/lib/utils/BushUtils.ts +++ b/src/lib/utils/BushUtils.ts @@ -313,8 +313,8 @@ export type TimestampStyle = 't' | 'T' | 'd' | 'D' | 'f' | 'F' | 'R'; * @param round Whether or not to round the smallest unit displayed. * @returns A humanized string of the delta. */ -export function dateDelta(date: Date, largest?: number, round = true): string { - return humanizeDuration(new Date().getTime() - date.getTime(), largest ?? 3, round); +export function dateDelta(date: Date, largest = 3, round = true): string { + return humanizeDuration(new Date().getTime() - date.getTime(), largest, round); } /** -- cgit