Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: useRef
Marc Seitze3f40612d58e
diff --git a/components/view/dataroom/download-otp-verification.tsx b/components/view/dataroom/download-otp-verification.tsxindex ac9a9d39..1c0f5a12 100644--- a/components/view/dataroom/download-otp-verification.tsx+++ b/components/view/dataroom/download-otp-verification.tsx@@ -1,6 +1,6 @@"use client";-import { useCallback, useEffect, useState } from "react";+import { useCallback, useEffect, useRef, useState } from "react";import {InputOTP,@@ -38,7 +38,7 @@ export function DownloadOtpVerification({const [isSending, setIsSending] = useState(false);const [error, setError] = useState<string | null>(null);const [resendCooldown, setResendCooldown] = useState(0);- const hasSentOnMountRef = { current: false };+ const hasSentOnMountRef = useRef(false);const sendOtp = useCallback(async () => {setIsSending(true);