aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/BushUtils.ts4
1 files 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);
}
/**