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.

small fixes

Steven Tey0ab0bfce306c
diff --git a/apps/web/lib/analytics/clicks.ts b/apps/web/lib/analytics/clicks.ts
index 17f7d274f4..0937d7d013 100644
--- a/apps/web/lib/analytics/clicks.ts
+++ b/apps/web/lib/analytics/clicks.ts
@@ -30,7 +30,6 @@ export const getClicks = async (
interval === "all" &&
headers()?.get("Request-Source") === "app.dub.co"
) {
- console.log("getting all time clicks count");
let response = await conn.execute(
"SELECT clicks FROM Link WHERE `id` = ?",
[linkId],
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index 48f6b6d1c2..85d5382a20 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -434,6 +434,7 @@ function AddEditLinkModal({
toast.success("Successfully updated shortlink!");
}
setShowAddEditLinkModal(false);
+ router.push(`/${slug}`);
} else {
const { error } = await res.json();
if (error) {