Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Fix notice state persisting across lock/unlock cycles

Cursor Agent71b160389ec4
diff --git a/app/(auth)/auth/email/[[...params]]/page-client.tsx b/app/(auth)/auth/email/[[...params]]/page-client.tsx
index 1b22ee4a..ea7770ad 100644
--- a/app/(auth)/auth/email/[[...params]]/page-client.tsx
+++ b/app/(auth)/auth/email/[[...params]]/page-client.tsx
@@ -42,7 +42,10 @@ export default function EmailVerificationClient() {
// Show email delivery notice after 5 seconds when waiting for verification
useEffect(() => {
- if (!emailLocked) return;
+ if (!emailLocked) {
+ setShowEmailDeliveryNotice(false);
+ return;
+ }
const timer = setTimeout(() => {
setShowEmailDeliveryNotice(true);