fix(css): fix version
This commit is contained in:
@@ -21,7 +21,7 @@ const LoginFormCard = (props: {
|
||||
}) => {
|
||||
const [tab, setTab] = React.useState<"login" | "register">("login");
|
||||
const [captcha, setCaptcha] = React.useState("");
|
||||
const [captchaKey, setCaptchaKey] = React.useState(() => String(Date.now()));
|
||||
const [captchaKey, setCaptchaKey] = React.useState("");
|
||||
const [loginExternalError, setLoginExternalError] = React.useState<
|
||||
string | null
|
||||
>(null);
|
||||
@@ -30,6 +30,10 @@ const LoginFormCard = (props: {
|
||||
password: string;
|
||||
} | null>(null);
|
||||
|
||||
React.useEffect(() => {
|
||||
setCaptchaKey(String(Date.now()));
|
||||
}, []);
|
||||
|
||||
function refreshCaptcha() {
|
||||
setCaptchaKey(String(Date.now()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user