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 page.tsx

Steven Teye1f188579d39
diff --git a/apps/web/app/admin.dub.co/(dashboard)/revenue/page.tsx b/apps/web/app/admin.dub.co/(dashboard)/revenue/page.tsx
index 0355521a8d..2986549813 100644
--- a/apps/web/app/admin.dub.co/(dashboard)/revenue/page.tsx
+++ b/apps/web/app/admin.dub.co/(dashboard)/revenue/page.tsx
@@ -26,7 +26,16 @@ async function RevenueRSC() {
)
.then((res) => res.json())
.catch(() => {
- return { data: { recurring_revenue: [] } };
+ return {
+ data: {
+ recurring_revenue:
+ // dummy data for this year
+ Array.from({ length: 12 }, (_, i) => ({
+ date: new Date(new Date().setMonth(i)),
+ value: 0,
+ })),
+ },
+ };
});
return <RevenueClient data={res.data.recurring_revenue} />;