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.

Update use-program-enrollments-count.ts

Steven Tey9a0108568420
diff --git a/apps/web/lib/swr/use-program-enrollments-count.ts b/apps/web/lib/swr/use-program-enrollments-count.ts
index e4392b472c..53e11ca336 100644
--- a/apps/web/lib/swr/use-program-enrollments-count.ts
+++ b/apps/web/lib/swr/use-program-enrollments-count.ts
@@ -12,11 +12,7 @@ export default function useProgramEnrollmentsCount(
const { data: count, isLoading } = useSWR<number>(
partnerId &&
- `/api/partner-profile/programs/count?${new URLSearchParams(
- Object.fromEntries(
- Object.entries(query).map(([key, value]) => [key, value.toString()]),
- ),
- )}`,
+ `/api/partner-profile/programs/count?${new URLSearchParams(query)}`,
fetcher,
{
dedupingInterval: 60000,