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.

Add error state

Tim Wilson5d7cc85ffbb3
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx
index a1c6abd5a2..31f751de81 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx
@@ -79,6 +79,10 @@ export function OverviewChart() {
<div className="flex size-full items-center justify-center">
<LoadingSpinner />
</div>
+ ) : error ? (
+ <div className="flex size-full items-center justify-center text-sm text-neutral-500">
+ Failed to load data
+ </div>
) : (
<TimeSeriesChart
key={`${start?.toString}-${end?.toString()}-${interval?.toString()}`}