fix error for deployment on vercel
This commit is contained in:
@@ -22,8 +22,12 @@ export default function Contact() {
|
|||||||
setSuccess(true);
|
setSuccess(true);
|
||||||
setForm({name: "", email: "", message: ""});
|
setForm({name: "", email: "", message: ""});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
//use err to avoid unused variable warning
|
||||||
|
if (err instanceof Error) {
|
||||||
setError("Failed to send message. Please try again.");
|
setError("Failed to send message. Please try again.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default function NotFound() {
|
|||||||
404
|
404
|
||||||
</h1>
|
</h1>
|
||||||
<p className="mt-4 text-xl text-gray-600 dark:text-gray-300">
|
<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>
|
</p>
|
||||||
<Link
|
<Link
|
||||||
href="/"
|
href="/"
|
||||||
|
|||||||
Reference in New Issue
Block a user