fix error for deployment on vercel

This commit is contained in:
2025-01-30 23:28:37 +01:00
parent 262f8d3b86
commit 65d9c2738d
2 changed files with 91 additions and 87 deletions

View File

@@ -22,8 +22,12 @@ export default function Contact() {
setSuccess(true);
setForm({name: "", email: "", message: ""});
} catch (err) {
//use err to avoid unused variable warning
if (err instanceof Error) {
setError("Failed to send message. Please try again.");
}
}
};
return (

View File

@@ -8,7 +8,7 @@ export default function NotFound() {
404
</h1>
<p className="mt-4 text-xl text-gray-600 dark:text-gray-300">
Oops! The page you're looking for doesn't exist.
Oops! The page you&#39;re looking for doesn&#39;t exist.
</p>
<Link
href="/"