From 6552efe2cc8944fcb9bda7443d9a96764fd68922 Mon Sep 17 00:00:00 2001 From: Alex Leventer Date: Sat, 26 Sep 2020 21:40:42 -0700 Subject: [PATCH] fix type issue --- src/utils/dateUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dateUtils.ts b/src/utils/dateUtils.ts index 686f843a..ce6e42fc 100644 --- a/src/utils/dateUtils.ts +++ b/src/utils/dateUtils.ts @@ -6,7 +6,7 @@ export const datesToDue = (date: string) => { return eventDate.diff(today, 'days'); }; -export const byDays = (a: object, b: object) => { +export const byDays = (a: any, b: any) => { switch(true) { case a.days < b.days: return -1;