This commit is contained in:
Manav Rathi
2024-05-25 16:14:14 +05:30
parent e0e80ee91f
commit 1f45cf00c7
3 changed files with 23 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ export type VerifyTwoFactorCallback = (
export default function VerifyTwoFactor(props: Props) {
const [waiting, setWaiting] = useState(false);
const otpInputRef = useRef(null);
const otpInputRef = useRef<OtpInput>(null);
const [success, setSuccess] = useState(false);
const markSuccessful = async () => {