Fixes for build (#124)

This commit is contained in:
vlalx
2025-06-03 20:48:20 +03:00
committed by GitHub
parent dba5a73e0e
commit dc6fafba41
3 changed files with 7 additions and 5 deletions

View File

@@ -78,6 +78,8 @@ export default function CreateSiteForm({
privateKey: string;
} | null>(null);
const t = useTranslations();
const createSiteFormSchema = z.object({
name: z
.string()
@@ -115,8 +117,6 @@ export default function CreateSiteForm({
const nameField = form.watch("name");
const methodField = form.watch("method");
const t = useTranslations();
useEffect(() => {
const nameIsValid = nameField?.length >= 2 && nameField?.length <= 30;
const isFormValid = methodField === "local" || isChecked;