delete example folder. add Error type

This commit is contained in:
Danel Kungla
2025-06-03 18:22:24 +03:00
parent 19c1bf756a
commit ca8432d4c6
18 changed files with 84 additions and 2570 deletions

View File

@@ -34,8 +34,10 @@ export default function RegisterCompany() {
try {
await submitCompanyRegistration(formData);
router.push("/register-company/success");
} catch (err: any) {
alert("Server validation error: " + err.message);
} catch (err: unknown) {
if (err instanceof Error) {
alert("Server validation error: " + err.message);
}
}
}