The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update page-client.tsx
Steven Teycdcc29fe0d75
diff --git a/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsxindex 5e6ee064bc..eaed79b434 100644--- a/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/account/settings/referrals/page-client.tsx@@ -14,10 +14,11 @@ export function ReferralsPageClient() {const dubPartnerId = session?.user?.["dubPartnerId"];useEffect(() => {- if (dubPartnerId) {+ if (session && !dubPartnerId) {+ console.log("no dubPartnerId found, updating session...");update();}- }, [dubPartnerId]);+ }, [session, dubPartnerId]);const { data: { publicToken } = {}, isLoading } = useSWRImmutable<{publicToken: string;