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 admin data issue

Steven Tey663a6d889c46
diff --git a/apps/web/app/admin.dub.co/revenue/page.tsx b/apps/web/app/admin.dub.co/revenue/page.tsx
index 637d0d60ee..d328787c65 100644
--- a/apps/web/app/admin.dub.co/revenue/page.tsx
+++ b/apps/web/app/admin.dub.co/revenue/page.tsx
@@ -18,7 +18,11 @@ async function RevenueRSC() {
Authorization: process.env.PROFITWELL_API_KEY as string,
},
},
- ).then((res) => res.json());
+ )
+ .then((res) => res.json())
+ .catch(() => {
+ return { data: { recurring_revenue: [] } };
+ });
return <RevenueClient data={res.data.recurring_revenue} />;
}