From 5280ea39d5af9450d6ce3933c285f523e137fa44 Mon Sep 17 00:00:00 2001 From: Piyush Sinha <88322205+piyushsi2@users.noreply.github.com> Date: Tue, 19 Oct 2021 21:51:25 -0700 Subject: [PATCH] Update Last 7 days --- package/src/defaults.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/src/defaults.ts b/package/src/defaults.ts index 5acb929..c629e7c 100644 --- a/package/src/defaults.ts +++ b/package/src/defaults.ts @@ -37,7 +37,7 @@ const getDefaultRanges = (date: Date): DefinedRange[] => [ { label: 'Last 7 Days', startDate: addWeeks(date, -1), - endDate: date, + endDate: addDays(date, -1), }, { label: 'This Month',