Age fixed

This commit is contained in:
Daniel Kluge 2022-11-03 11:24:34 +01:00
parent a8710a96b6
commit 154e6fcb4a

View File

@ -71,7 +71,7 @@ const Me: NextPage = () => {
window.addEventListener("scroll", handleScrollAnimation);
}, []);
const age = new Date().getFullYear() - 1998 - (new Date().getMonth() < 10 ? 1 : 0);
const age = new Date().getFullYear() - 1998 - (new Date().getMonth() <= 10 ? 1 : 0);
return <Layout>
<h1>This is me.</h1>