Skip to content

Commit b52211e

Browse files
committed
fix types
1 parent 3ec433d commit b52211e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function Turnstile({
5656
onError,
5757
onExpire,
5858
}: TurnstileProps) {
59-
const ref = useRef<HTMLDivElement>();
59+
const ref = useRef<HTMLDivElement | null>(null);
6060
const inplaceState = useState<TurnstileCallbacks>({ onVerify })[0];
6161

6262
useEffect(() => {

0 commit comments

Comments
 (0)