Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Allow up to 31 days for free plan

Tim Wilsond0aeb5bcf774
diff --git a/apps/web/lib/analytics/utils.ts b/apps/web/lib/analytics/utils.ts
index 98be0cd9db..058196a64d 100644
--- a/apps/web/lib/analytics/utils.ts
+++ b/apps/web/lib/analytics/utils.ts
@@ -49,8 +49,8 @@ export const validDateRangeForPlan = ({
interval === "1y" ||
interval === "ytd" ||
(start &&
- (getDaysDifference(start, new Date(Date.now())) > 30 ||
- getDaysDifference(start, end || new Date(Date.now())) > 30)))
+ (getDaysDifference(start, new Date(Date.now())) > 31 ||
+ getDaysDifference(start, end || new Date(Date.now())) > 31)))
) {
if (throwError) {
throw new DubApiError({