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.

Link logic

Tim Wilson52f01f837454
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/overview-chart.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/overview-chart.tsx
index 4da0437f43..e3c7c868c5 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/overview-chart.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/overview-chart.tsx
@@ -107,9 +107,12 @@ export function OverviewChart() {
</div>
<ButtonLink
- href={`/${slug}/program/analytics${getQueryString(undefined, {
- include: ["interval", "start", "end"],
- })}`}
+ href={`/${slug}/program/${viewType === "revenue" ? "analytics" : "commissions"}${getQueryString(
+ undefined,
+ {
+ include: ["interval", "start", "end"],
+ },
+ )}`}
variant="secondary"
className="h-8 px-3 text-sm"
>