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 export-button.tsx

Steven Teye46690feee15
diff --git a/apps/web/ui/analytics/events/export-button.tsx b/apps/web/ui/analytics/events/export-button.tsx
index bcd4dc8638..aa22a61483 100644
--- a/apps/web/ui/analytics/events/export-button.tsx
+++ b/apps/web/ui/analytics/events/export-button.tsx
@@ -1,6 +1,5 @@
import useWorkspace from "@/lib/swr/use-workspace";
import { Button, Download, TooltipContent } from "@dub/ui";
-import { APP_DOMAIN } from "@dub/utils";
import { useContext } from "react";
import { toast } from "sonner";
import { EventsContext } from "./events-provider";
@@ -43,7 +42,7 @@ export default function ExportButton({ onClick }: { onClick?: () => void }) {
<TooltipContent
title="Upgrade to our Business Plan to enable CSV downloads for events in your workspace."
cta="Upgrade to Business"
- href={slug ? `/${slug}/upgrade` : APP_DOMAIN}
+ href={`/${slug}/upgrade`}
/>
}
onClick={() => {