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 page.tsx

Kiran Kaed057f0d363
diff --git a/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx b/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx
index f03c5cefc1..cb8ddc4cab 100644
--- a/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx
@@ -48,7 +48,6 @@ const VerifyEmailChange = async ({
},
});
-
if (!tokenFound || tokenFound.expires < new Date()) {
return (
<EmptyState
@@ -83,7 +82,9 @@ const VerifyEmailChange = async ({
const { id: userId, defaultPartnerId: partnerId } = session.user;
- const identifier = "user_1K1A7E86362MHCHEMX11KHKQ8"
+ const identifier = tokenFound.identifier.startsWith("pn_")
+ ? partnerId
+ : userId;
const data = await redis.get<{
email: string;
@@ -91,9 +92,6 @@ const VerifyEmailChange = async ({
isPartnerProfile?: boolean;
}>(`email-change-request:user:${identifier}`);
- console.log({identifier})
-
-
if (!data) {
return (
<EmptyState