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.

Misc. tweaks

Tim Wilsonac33e476d302
diff --git a/apps/web/lib/api/partners/get-network-invites-usage.ts b/apps/web/lib/api/partners/get-network-invites-usage.ts
index 85df300640..a11cc1a0fd 100644
--- a/apps/web/lib/api/partners/get-network-invites-usage.ts
+++ b/apps/web/lib/api/partners/get-network-invites-usage.ts
@@ -12,7 +12,7 @@ export async function getNetworkInvitesUsage({
workspaceId,
},
invitedAt: {
- not: null,
+ gt: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
},
},
});
diff --git a/apps/web/ui/partners/partner-network/invites-usage.tsx b/apps/web/ui/partners/partner-network/invites-usage.tsx
index 4f66550779..3ef21c5d5d 100644
--- a/apps/web/ui/partners/partner-network/invites-usage.tsx
+++ b/apps/web/ui/partners/partner-network/invites-usage.tsx
@@ -11,8 +11,8 @@ export function InvitesUsage() {
<Tooltip
content={
<p className="max-w-xs p-2 text-center text-xs font-medium text-neutral-600">
- Invite limits are based on a 7-day rolling period. If you need more
- weekly invites,{" "}
+ Invitation limits are based on a 7-day rolling period. If you need
+ more weekly invites,{" "}
<a
href="https://dub.co/contact/sales"
target="_blank"