The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update modal-provider.tsx
Steven Tey3c2243e6b137
diff --git a/apps/web/ui/modals/modal-provider.tsx b/apps/web/ui/modals/modal-provider.tsxindex 320a487eea..9834b26e53 100644--- a/apps/web/ui/modals/modal-provider.tsx+++ b/apps/web/ui/modals/modal-provider.tsx@@ -145,8 +145,10 @@ function ModalProviderClient({ children }: { children: ReactNode }) {// handle invite and oauth modalsuseEffect(() => {- setShowAcceptInviteModal(true);- }, []);+ if (error && (error.status === 409 || error.status === 410)) {+ setShowAcceptInviteModal(true);+ }+ }, [error]);// handle ?newWorkspace and ?newLink query paramsuseEffect(() => {