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 accept-invite-modal.tsx

Kiran K54bc2fc613aa
diff --git a/apps/web/ui/modals/accept-invite-modal.tsx b/apps/web/ui/modals/accept-invite-modal.tsx
index dd8b012921..59d29d26b4 100644
--- a/apps/web/ui/modals/accept-invite-modal.tsx
+++ b/apps/web/ui/modals/accept-invite-modal.tsx
@@ -79,7 +79,7 @@ function AcceptInviteModal({
}
await mutatePrefix("/api/workspaces");
- router.refresh();
+ router.replace("/workspaces");
setShowAcceptInviteModal(false);
toast.success("You have declined the invite.");
} finally {