fix magic wand cursor 🪄

This commit is contained in:
jake committed 2022-01-24 20:43:45 -05:00
1 parent 5847fd82b6
commit c1e030dfcc
6 files changed
+30 -31

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ export const getStaticProps: GetStaticProps = async () => {
// parse the year of each note and group them together
const notesByYear = {};
getAllNotes().map((note) => {
const year = parseInt(format(new Date(note.date), "yyyy"));
const year = Number.parseInt(format(new Date(note.date), "yyyy"));
(notesByYear[year] || (notesByYear[year] = [])).push(note);
});