fix error for deployment on vercel
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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're looking for doesn't exist.
|
||||
</p>
|
||||
<Link
|
||||
href="/"
|
||||
|
||||
Reference in New Issue
Block a user