fix redirect bug for some accounts when disable create org is enabled

This commit is contained in:
miloschwartz
2025-07-18 12:59:57 -07:00
parent 23eb0da7d7
commit b34c3db956
5 changed files with 38 additions and 31 deletions

View File

@@ -103,8 +103,10 @@ export default function SecurityKeyForm({
});
useEffect(() => {
loadSecurityKeys();
}, []);
if (open) {
loadSecurityKeys();
}
}, [open]);
const registerSchema = z.object({
name: z.string().min(1, { message: t("securityKeyNameRequired") }),