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.

fix useGroups `sortBy` param

Steven Teyb649902cddcc
diff --git a/apps/web/lib/swr/use-groups.ts b/apps/web/lib/swr/use-groups.ts
index 3732f687e1..68c1528262 100644
--- a/apps/web/lib/swr/use-groups.ts
+++ b/apps/web/lib/swr/use-groups.ts
@@ -20,7 +20,7 @@ export default function useGroups<T extends GroupProps>({
enabled && workspaceId && defaultProgramId
? `/api/groups?${new URLSearchParams({
workspaceId,
- sortBy: "saleAmount",
+ sortBy: "totalSaleAmount",
...(query as Record<string, string>),
}).toString()}`
: null,