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 K44eeae339e04
diff --git a/apps/web/ui/modals/accept-invite-modal.tsx b/apps/web/ui/modals/accept-invite-modal.tsx
index 6a92b04de8..dd8b012921 100644
--- a/apps/web/ui/modals/accept-invite-modal.tsx
+++ b/apps/web/ui/modals/accept-invite-modal.tsx
@@ -55,7 +55,7 @@ function AcceptInviteModal({
});
await mutatePrefix(["/api/workspaces", "/api/programs"]);
- router.refresh();
+ router.replace(`/${slug}`);
setShowAcceptInviteModal(false);
toast.success("You now are a part of this workspace!");
} finally {