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.

only throw WorkspaceNotFound error when 404

Steven Tey93b32e37a5d6
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/auth.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/auth.tsx
index fe0fef9cd4..9da2e89eca 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/auth.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/auth.tsx
@@ -12,7 +12,7 @@ export default function WorkspaceAuth({ children }: { children: ReactNode }) {
return <LayoutLoader />;
}
- if (error) {
+ if (error && error.status === 404) {
return <WorkspaceNotFound />;
}