aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-14 21:45:29 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-14 21:45:29 -0400
commit8aed6f93f7740c592cbc0e2f9fd3269c05286077 (patch)
treec063594868a8b9a30b06c6e99a0988451e81f1c7
parent82b7fdf99ba4ad50ca037ff11c8fd2d386c45e71 (diff)
downloadtanzanite-8aed6f93f7740c592cbc0e2f9fd3269c05286077.tar.gz
tanzanite-8aed6f93f7740c592cbc0e2f9fd3269c05286077.tar.bz2
tanzanite-8aed6f93f7740c592cbc0e2f9fd3269c05286077.zip
use default value for dateDelta
-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);
}
/**